Image processing device and method

ABSTRACT

An image processing device of the present disclosure sets a replacement difference coefficient that is a difference between a replacement coefficient and a coefficient located at the beginning of a quantization matrix whose size is limited to not greater than a transmission size that is a maximum size allowed in transmission, the replacement coefficient being used to replace a coefficient located at the beginning of an up-converted quantization matrix which is obtained by up-converting the quantization matrix to the same size as a block size that is a unit of processing in which dequantization is performed, quantizes an image to generate quantized data, and transmit encoded data obtained by encoding the generated quantized data, replacement coefficient data obtained by encoding the replacement coefficient, and replacement difference coefficient data obtained by encoding the set replacement difference coefficient. The present disclosure can be applied to an image processing device.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of U.S. application Ser. No.15/480,091, filed Apr. 5, 2017, which is a continuation of U.S.application Ser. No. 14/375,357, filed Jul. 29, 2014, which is aNational Stage of PCT/JP2013/055541, filed Feb. 28, 2013, which claimsthe benefit of priority to Japanese Patent Application No. 2012-044009,filed Feb. 29, 2012, the entire contents of each of which areincorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to an image processing device and method.

BACKGROUND ART

In H.264/AVC (Advanced Video Coding), which is one of standardspecifications of video coding schemes, the profiles of High Profile orhigher allow quantization of image data with quantization step sizesthat differ from one component of orthogonal transform coefficient toanother. The quantization step size for each component of orthogonaltransform coefficient may be set based on a reference step value and aquantization matrix (also referred to as a scaling list) defined by asize equivalent to the unit of an orthogonal transform.

A specified value of a quantization matrix is prepared for eachprediction mode (intra-prediction mode, inter-prediction mode) and foreach transform unit size (4×4, 8×8). Furthermore, users are allowed tospecify a unique quantization matrix different from the specified valuesin a sequence parameter set or picture parameter set. In a case where noquantization matrices are used, quantization step sizes used forquantization have an equal value for all the components.

In HEVC (High Efficiency Video Coding), which is being standardized as anext-generation video coding scheme and which is a successor toH.264/AVC, the concept of coding units (CUs) corresponding totraditional macroblocks has been introduced (see, for example, NPL 1).The range of sizes of coding units is specified by a set of values whichare powers of 2, called the largest coding unit (LCU) and the smallestcoding unit (SCU), in a sequence parameter set. Furthermore, thespecific coding unit size in the range specified by the LCU and the SCUis specified using split flag.

In HEVC, one coding unit may be divided into one or more orthogonaltransform units, or one or more transform units (TUs). An availabletransform unit size is any of 4×4, 8×8, 16×16, and 32×32.

Meanwhile, the DC component (also referred to as the direct currentcomponent) of a quantization matrix (scaling list) is transmitted asdata different from the AC components (also referred to as thealternating current components) thereof for purposes such as thereduction in the amount of coding during transmission. Specifically, theDC component of a scaling list is transmitted as a DC coefficient (alsoreferred to as a direct current coefficient) different from ACcoefficients (also referred to as alternating current coefficients),which are the AC components of the scaling list.

In order to reduce the amount of coding of the DC coefficient duringtransmission, it has been suggested that a constant (for example, 8) issubtracted from the value of the DC coefficient and the resulting value(scaling_list_dc_coef_minus8) is encoded using signed exponential Golombcoding (see, for example, NPL 1).

CITATION LIST Non Patent Literature

NPL 1: Benjamin Bross, Fraunhofer HHI, Woo-Jin Han, Gachon University,Jens-Rainer Ohm, RWTH Aachen, Gary J. Sullivan, Microsoft, ThomasWiegand, Fraunhofer HHI/TU Berlin, JCTVC-H1003, “High Efficiency VideoCoding (HEVC) text specification draft 6”, Joint Collaborative Team onVideo Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11 7thMeeting: Geneva, CH, 21-30 November, 2011

SUMMARY OF INVENTION Technical Problem

However, there is a concern that the method described above will notprovide sufficient compression efficiency although it facilitatesprocesses.

The present disclosure has been made in view of the situation describedabove, and it is an object of the present disclosure to enablesuppression of an increase in the amount of coding of a scaling list.

Solution to Problem

An aspect of the present disclosure provides an image processing deviceincluding a setting unit configured to set a replacement differencecoefficient that is a difference between a replacement coefficient and acoefficient located at the beginning of a quantization matrix whose sizeis limited to not greater than a transmission size that is a maximumsize allowed in transmission, the replacement coefficient being used toreplace a coefficient located at the beginning of an up-convertedquantization matrix which is obtained by up-converting the quantizationmatrix to the same size as a block size that is a unit of processing inwhich dequantization is performed; a quantization unit configured toquantize an image to generate quantized data; and a transmission unitconfigured to transmit encoded data obtained by encoding the quantizeddata generated by the quantization unit, replacement coefficient dataobtained by encoding the replacement coefficient, and replacementdifference coefficient data obtained by encoding the replacementdifference coefficient set by the setting unit.

The setting unit can set a difference between the replacementcoefficient and an initial value set for the quantization matrix.

The setting unit can set difference coefficients that are differencesbetween coefficients of the quantization matrix, and the transmissionunit can transmit difference coefficient data obtained by encoding thedifference coefficients set by the setting unit.

The transmission unit can collectively transmit the replacementcoefficient data and the replacement difference coefficient data.

The transmission unit can transmit the replacement coefficient data andthe replacement difference coefficient data in order of the replacementcoefficient data and the replacement difference coefficient data.

The quantization unit can quantize the image using the quantizationmatrix or the up-converted quantization matrix.

A coding unit that is a unit of processing in which an encoding processis performed and a transform unit that is a unit of processing in whicha transform process is performed can have a layered structure, and theimage processing device can further include an encoding unit configuredto encode the quantized data generated by the quantization unit.

An aspect of the present disclosure further provides an image processingmethod including setting a replacement difference coefficient that is adifference between a replacement coefficient and a coefficient locatedat the beginning of a quantization matrix whose size is limited to notgreater than a transmission size that is a maximum size allowed intransmission, the replacement coefficient being used to replace acoefficient located at the beginning of an up-converted quantizationmatrix which is obtained by up-converting the quantization matrix to thesame size as a block size that is a unit of processing in whichdequantization is performed; quantizing an image to generate quantizeddata; and transmitting encoded data obtained by encoding the generatedquantized data, replacement coefficient data obtained by encoding thereplacement coefficient, and replacement difference coefficient dataobtained by encoding the set replacement difference coefficient.

In an aspect of the present disclosure, a replacement differencecoefficient that is a difference between a replacement coefficient and acoefficient located at the beginning of a quantization matrix whose sizeis limited to not greater than a transmission size that is a maximumsize allowed in transmission is set, the replacement coefficient beingused to replace a coefficient located at the beginning of anup-converted quantization matrix which is obtained by up-converting thequantization matrix to the same size as a block size that is a unit ofprocessing in which dequantization is performed; an image is quantizedto generate quantized data; and encoded data obtained by encoding thegenerated quantized data, replacement coefficient data obtained byencoding the replacement coefficient, and replacement differencecoefficient data obtained by encoding the set replacement differencecoefficient are transmitted.

Advantageous Effects of Invention

According to the present disclosure, it is possible to process an image.In particular, it is possible to suppress an increase in the amount ofcoding of a quantization matrix.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram illustrating an example of a scaling list.

FIG. 2 is a diagram illustrating an example of up-conversion.

FIG. 3 is a diagram illustrating an example of how a scaling list isused in a decoder.

FIG. 4 is a diagram illustrating an example of the encoding of a scalinglist.

FIG. 5 is a diagram illustrating an example of the encoding of a scalinglist using the present technology.

FIG. 6 is a diagram illustrating an example of exponential Golomb codes.

FIG. 7 includes diagrams illustrating an example of the syntax for ascaling list.

FIG. 8 is a diagram illustrating an example of the syntax for a defaultmatrix.

FIG. 9 includes diagrams illustrating examples of the semantics of adefault matrix.

FIG. 10 is a diagram illustrating an example of the syntax for a scalinglist.

FIG. 11 is a diagram illustrating an example of the syntax for a scalinglist using the present technology.

FIG. 12 includes diagrams illustrating an example of the syntax of ascaling list in the related art.

FIG. 13 is a diagram illustrating an example of the syntax of a scalinglist.

FIG. 14 is a block diagram illustrating an example of a mainconfiguration of an image encoding device.

FIG. 15 is a block diagram illustrating an example of a mainconfiguration of an orthogonal transform/quantization unit.

FIG. 16 is a block diagram illustrating an example of a mainconfiguration of a matrix processing unit.

FIG. 17 is a diagram illustrating an example of downsampling.

FIG. 18 is a diagram illustrating an example of the removal of anoverlapping portion.

FIG. 19 is a block diagram illustrating an example of a mainconfiguration of a DPCM unit.

FIG. 20 is a flowchart illustrating an example of the flow of aquantization matrix encoding process.

FIG. 21 is a flowchart illustrating an example of the flow of a DPCMprocess.

FIG. 22 is a block diagram illustrating an example of a mainconfiguration of an image decoding device.

FIG. 23 is a block diagram illustrating an example of a mainconfiguration of a dequantization/inverse orthogonal transform unit.

FIG. 24 is a block diagram illustrating an example of a mainconfiguration of a matrix generation unit.

FIG. 25 is a diagram illustrating an example of a nearest neighborinterpolation process.

FIG. 26 is a block diagram illustrating an example of a mainconfiguration of an inverse DPCM unit.

FIG. 27 is a flowchart illustrating an example of the flow of a matrixgeneration process.

FIG. 28 is a flowchart illustrating an example of the flow of a residualsignal decoding process.

FIG. 29 is a flowchart illustrating an example of the flow of an inverseDPCM process.

FIG. 30 is a diagram illustrating another example of the syntax of ascaling list.

FIG. 31 is a block diagram illustrating another example configuration ofthe DPCM unit.

FIG. 32 is a flowchart illustrating another example of the flow of theDPCM process.

FIG. 33 is a block diagram illustrating another example configuration ofthe inverse DPCM unit.

FIG. 34 is a flowchart illustrating another example of the flow of theinverse DPCM process.

FIG. 35 is a diagram illustrating still another example of the syntax ofa scaling list.

FIG. 36 is a flowchart illustrating still another example of the flow ofthe inverse DPCM process.

FIG. 37 is a diagram illustrating still another example of the syntax ofa scaling list.

FIG. 38 is a block diagram illustrating still another exampleconfiguration of the DPCM unit.

FIG. 39 is a flowchart illustrating still another example of the DPCMprocess.

FIG. 40 is a block diagram illustrating still another exampleconfiguration of the inverse DPCM unit.

FIG. 41 is a flowchart illustrating still another example of the flow ofthe inverse DPCM process.

FIG. 42 is a flowchart continued from FIG. 41, illustrating stillanother example of the flow of the inverse DPCM process.

FIG. 43 includes diagrams illustrating still another example of thesyntax of a scaling list.

FIG. 44 includes diagrams illustrating still another example of thesyntax of a scaling list.

FIG. 45 includes diagrams illustrating still another example of thesyntax of a scaling list.

FIG. 46 is a diagram illustrating an example of a multi-view imageencoding scheme.

FIG. 47 is a diagram illustrating an example of a main configuration ofa multi-view image encoding device to which the present technology isapplied.

FIG. 48 is a diagram illustrating an example of a main configuration ofa multi-view image decoding device to which the present technology isapplied.

FIG. 49 is a diagram illustrating an example of a layered image encodingscheme.

FIG. 50 is a diagram illustrating an example of a main configuration ofa layered image encoding device to which the present technology isapplied.

FIG. 51 is a diagram illustrating an example of a main configuration ofa layered image decoding device to which the present technology isapplied.

FIG. 52 is a block diagram illustrating an example of a mainconfiguration of a computer.

FIG. 53 is a block diagram illustrating an example of a mainconfiguration of a television apparatus.

FIG. 54 is a block diagram illustrating an example of a mainconfiguration of a mobile terminal device.

FIG. 55 is a block diagram illustrating an example of a mainconfiguration of a recording/reproducing apparatus.

FIG. 56 is a block diagram illustrating an example of a mainconfiguration of an imaging apparatus.

FIG. 57 is a block diagram illustrating an example of the use ofscalable coding.

FIG. 58 is a block diagram illustrating another example of the use ofscalable coding.

FIG. 59 is a block diagram illustrating still another example of the useof scalable coding.

DESCRIPTION OF EMBODIMENTS

Modes for carrying out the present disclosure (hereinafter referred toas embodiments) will be described hereinafter. In this regards, thedescription will be made in the following order.

1. First embodiment (exemplary application of present technology)

2. Second embodiment (image encoding device, image decoding device:first method)

3. Third embodiment (image encoding device, image decoding device:second method)

4. Fourth embodiment (image encoding device, image decoding device:third method)

5. Fifth embodiment (image encoding device, image decoding device:fourth method)

6. Sixth embodiment (image encoding device, image decoding device: othermethods)

7. Seventh embodiment (multi-view image encoding device, multi-viewimage decoding device)

8. Eighth embodiment (layered image encoding device, layered imagedecoding device)

9. Ninth embodiment (computer)

10. Example applications

11. Example applications of scalable coding

<1. First Embodiment>

In this embodiment, a description will be given of an exemplaryapplication of the present technology, which will be described in detailin the second and following embodiments thereof.

<1-1. Exemplary Application of Present Technology>

First, an exemplary example in which the present technology isapplicable will be described. The present technology is a technologyrelated to the encoding and decoding of a scaling list used inquantization and dequantization processes performed when image data isencoded and decoded.

The encoding and decoding of image data may involve quantization anddequantization of coefficient data. Such quantization and dequantizationare performed in units of a block having a predetermined size, and ascaling list (or quantization matrix) having a size corresponding to theblock size is used. For example, in HEVC (High Efficiency Video Coding),quantization (or dequantization) is performed with sizes such as 4×4,8×8, 16×16, and 32×32. In HEVC, quantization matrices having 4×4 and 8×8sizes may be prepared.

FIG. 1 illustrates an example of an 8×8 scaling list. As illustrated inFIG. 1, a scaling list includes a DC coefficient and AC coefficients.The DC coefficient composed of one value is the (0, 0) coefficient of aquantization matrix, and corresponds to the DC coefficient of a discretecosine transform (DCT). The AC coefficients are coefficients of thequantization matrix other than the (0, 0) coefficient, and correspond tocoefficients of the DCT other than the DC coefficient. Note that, asillustrated in FIG. 1, the AC coefficients are represented by a matrix.That is, the AC coefficients also include the (0, 0) coefficient(hereinafter also referred to as the AC coefficient (0, 0)), and the (0,0) coefficient, which is located at the beginning of the quantizationmatrix, is replaced with the DC coefficient when used forquantization/dequantization. Hence, the DC coefficient is also referredto as a replacement coefficient. In the example illustrated in FIG. 1,AC coefficients form an 8×8 matrix.

In HEVC, furthermore, an up-converted version (upward conversion) of an8×8 quantization matrix is used for 16×16 or 32×32 quantization (ordequantization).

FIG. 2 illustrates an example of the up-conversion of an 8×8 scalinglist to a 16×16 scaling list. As illustrated in FIG. 2, a scaling listis up-converted using, for example, a nearest neighbor interpolationprocess. The details of the nearest neighbor interpolation process willbe described below with reference to, for example, FIG. 25. Asillustrated in FIG. 2, up-conversion is performed on the AC coefficientsof the scaling list. Then, the (0, 0) coefficient among the up-convertedAC coefficients is replaced with the DC coefficient.

Two types of 8×8 scaling lists are prepared, namely, that used forup-conversion to 16×16 (“8×8 for 16×16”) and that used for up-conversionto 32×32 (“8×8 for 32×32”).

The scaling list used for quantization during encoding (using anencoder) is also used for dequantization during decoding (using adecoder). That is, the scaling list is transmitted from the encodingside (the encoder) to the decoding side (the decoder). FIG. 3illustrates an example of the transmission of scaling lists.

As in the example illustrated in FIG. 3, the two types of 8×8 scalinglists, namely, that used for up-conversion to a 16×16 size and that usedfor up-conversion to a 32×32 size, as described above, are transmitted.Although not illustrated in the drawings, a 4×4 scaling list is alsotransmitted.

The AC coefficients of the 8×8 scaling list used for up-conversion to a16×16 size, which has been transmitted in the manner described above,are up-converted to the 16×16 size at the decoding side (the decoder)using the nearest neighbor interpolation process described above, andare used for the dequantization of a block having a 16×16 size after the(0, 0) coefficient is replaced with the DC coefficient.

Similarly, the AC coefficients of the 8×8 scaling list used forup-conversion to a 32×32 size, which has been transmitted in the mannerdescribed above, are also up-converted to the 32×32 size at the decodingside (the decoder) using the nearest neighbor interpolation processdescribed above, and are used for the dequantization of a block having a32×32 size after the (0, 0) coefficient is replaced with the DCcoefficient.

<1-2. Encoding of Scaling List>

The transmission of scaling lists in the manner described above willincrease the amount of coding accordingly. Thus, in order to suppress areduction in coding efficiency, the scaling lists are encoded using acertain method to reduce the amount of coding of the scaling lists. FIG.4 illustrates an example of the encoding of a scaling list.Specifically, an 8×8 scaling list is transmitted as follows.

In the case of up-conversion of an 8×8 matrix to a 16×16 matrix:

(1) A difference between the (0, 0) coefficient (that is, the ACcoefficient (0, 0)) of the 8×8 matrix and a predetermined initial value“8” is taken.

(2) Differences between coefficients (that is, AC coefficients)(adjacent coefficients in a sequence of coefficients one-dimensionallyarranged in scan order) of the 8×8 matrix are taken.

(3) A difference between the (0, 0) coefficient (that is, the DCcoefficient) of the 16×16 matrix and a predetermined initial value “8”is taken.

(4) The differences obtained in (1) and (2) and the difference obtainedin (3) are transmitted separately.

In the case of up-conversion of an 8×8 matrix to a 32×32 matrix:

(1) A difference between the (0, 0) coefficient (that is, the ACcoefficient (0, 0)) of the 8×8 matrix and a predetermined initial value“8” is taken.

(2) Differences between coefficients (that is, AC coefficients)(adjacent coefficients in a sequence of coefficients one-dimensionallyarranged in scan order) of the 8×8 matrix are taken.

(3) A difference between the (0, 0) coefficient (that is, the DCcoefficient) of the 32×32 matrix and a predetermined initial value “8”is taken.

(4) The differences obtained in (1) and (2) and the difference obtainedin (3) are transmitted separately.

In the method described above, however, the differences are encodedusing signed exponential Golomb coding and are transmitted in (4). Asdescribed above, the difference obtained in (1) is the differencebetween the AC coefficient (0, 0) and the initial value “8”. Thus, thereis a concern that the amount of coding may be increased if the value ofthe AC coefficient (0, 0) is not a value close to the initial value “8”.

For example, in FIG. 4, the value of the AC coefficient (0, 0) is “12”,and the value “4” is encoded using signed exponential Golomb coding andis transmitted as the difference obtained in (1). That is, 7 bits arerequired for the transmission of the difference obtained in (1) andcoding efficiency may be reduced correspondingly. If the value of thedifference obtained in (1) increases, coding efficiency may further bereduced. The same is true for the case of an 8×8 scaling list used forup-conversion to a 16×16 size and an 8×8 scaling list used forup-conversion to a 32×32 size.

Meanwhile, the energy of DCT coefficients is generally concentrated inthe DC coefficient and neighboring low-order coefficients. Therefore, ingeneral, a quantization matrix also has small values for the DCcoefficient and neighboring coefficients. Furthermore, if values thatare significantly different are used for individual frequencies, aquantization error may be subjectively noticeable. In order to suppresssuch visual deterioration in image quality, consecutive values are usedfor the DC coefficient and neighboring coefficients.

The (0, 1) coefficient, (1, 0) coefficient, and (1, 1) coefficientobtained after up-conversion correspond to the AC coefficient (0, 0)before up-conversion. Furthermore, the (0, 0) coefficient obtained afterup-conversion corresponds to the DC coefficient.

Thus, in scaling lists, the value of the AC coefficient (0, 0) and thevalue of the DC coefficient are generally close to each other. Forexample, MPEG2, AVC, and HEVC default matrices take values having such arelationship. Also in the example illustrated in FIG. 4, the value ofthe DC coefficient is the same as the value of AC coefficient (0, 0),that is, “12”. Thus, the value of the difference obtained in (3), thatis, the difference between the DC coefficient and the initial value “8”,is also “4”.

That is, taking a difference between each of the DC coefficient and theAC coefficient (0, 0), whose values are close to each other, and theinitial value may increase the difference value therebetween, and mayalso cause redundancy. It can be said that there will be a risk offurther reducing coding efficiency.

To address this, a scaling list is transmitted using the followingmethod instead of using the method illustrated in FIG. 4. FIG. 5illustrates an example of this method.

In the case of up-conversion of an 8×8 matrix to a 16×16 matrix:

(1) A difference between the (0, 0) coefficient (that is, the ACcoefficient (0, 0)) of the 8×8 matrix and the (0, 0) coefficient (thatis, the DC coefficient) of the 16×16 matrix is taken.

(2) Differences between coefficients (that is, AC coefficients)(adjacent coefficients in a sequence of coefficients one-dimensionallyarranged in scan order) of the 8×8 matrix are taken.

(3) A difference between the (0, 0) coefficient (that is, the DCcoefficient) of the 16×16 matrix and a predetermined initial value “8”is taken.

(4) The differences obtained in (1) to (3) are collectively transmitted.

In the case of up-conversion of an 8×8 matrix to a 32×32 matrix:

(1) A difference between the (0, 0) coefficient (that is, the ACcoefficient (0, 0)) of the 8×8 matrix and the (0, 0) coefficient (thatis, the DC coefficient) of the 32×32 matrix is taken.

(2) Differences between coefficients (that is, AC coefficients)(adjacent coefficients in a sequence of coefficients one-dimensionallyarranged in scan order) of the 8×8 matrix are taken.

(3) A difference between the (0, 0) coefficient (that is, the DCcoefficient) of the 32×32 matrix and a predetermined initial value “8”is taken.

(4) The differences obtained in (1) to (3) are collectively transmitted.

Similarly to the method illustrated in FIG. 4, in (4), the differencesare encoded using exponential Golomb coding and are transmitted asexponential Golomb codes.

At the destination to which the differences are transmitted asexponential Golomb codes, when the exponential Golomb codes arereceived, the received exponential Golomb codes are decoded to obtainthe individual differences, and the processes inverse to those in (1) to(3) described above are performed on the obtained differences todetermine the individual coefficients (the DC coefficient and the ACcoefficients).

<1-3. Exemplary Features of Present Technology>

Exemplary features of the present technology related to the transmissionmethod described above will now be described.

<1-3-1. DPCM between AC Coefficient (0, 0) and DC Coefficient>

Scaling lists are encoded using differential pulse-code modulation(DPCM) and are transmitted. In the example illustrated in FIG. 4, the ACcoefficients and the DC coefficient are DPCM encoded individually,whereas, according to one of the features of the present technology, asin the example illustrated in FIG. 5, a difference (also referred to asa replacement difference coefficient) between the AC coefficient (0, 0)and the DC coefficient is determined and transmitted.

As described above, the AC coefficient (0, 0) and the DC coefficientgenerally take values that are close to each other. Thus, a differencebetween the AC coefficient (0, 0) and the DC coefficient may possibly besmaller than a difference between the AC coefficient (0, 0) and theinitial value “8”. That is, the transmission of a replacement differencecoefficient that is a difference between the AC coefficient (0, 0) andthe DC coefficient using the present technology may be more likely toreduce the amount of coding.

For example, in the example illustrated in FIG. 5, the value of thedifference obtained in (1) is “0”.

FIG. 6 is a table illustrating an example of signed exponential Golombcoding. As indicated in the table illustrated in FIG. 6, the exponentialGolomb code for the value “4” has a code length of 7 bits whereas theexponential Golomb code for the value “0” has a code length of 1 bit.That is, the method illustrated in FIG. 5 can reduce the amount ofcoding by 6 bits compared to the method illustrated in FIG. 4.

In general, a coding amount of approximately 100 bits to 200 bits isrequired for the transmission of a quantization matrix having an 8×8size. Hence, 6 bits occupy approximately 6% of the total amount. Areduction in the amount of coding by 6% in High Level Syntax can be saidto be a very large effect.

<1-3-2. Collective Transmission of DC Coefficient and AC Coefficients>

FIG. 7 illustrates an example of the syntax of a scaling list. Thesyntax for the example illustrated in FIG. 4 is illustrated in anexample illustrated in part A of FIG. 7. Specifically, after thedifference between the AC coefficient (0, 0) and the initial value “8”and the differences between the AC coefficients(scaling_list_delta_coef) are transmitted, the difference between the DCcoefficient and the initial value “8” (scaling_list_dc_coef_minus8) isseparately transmitted.

In contrast, one of the features of the present technology is that thedifference between the DC coefficient and the AC coefficient (0, 0) andthe differences between the AC coefficients are arranged in this orderand are collectively transmitted. Specifically, as illustrated in FIG.5, after the DC coefficient and the AC coefficients arranged in apredetermined scan order are one-dimensionally arranged and thedifference between the DC coefficient and the initial value “8” isdetermined, the differences between adjacent coefficients in thesequence of coefficients are determined. Further, the resultingdifferences (differences between coefficients) are one-dimensionallyarranged in the order of being obtained and are collectivelytransmitted.

The syntax in this case is illustrated in an example in part B of FIG.7. Specifically, initially, the difference between the DC coefficientand the initial value “8” (scaling_list_dc_coef_minus8) is transmitted,and then the difference between the DC coefficient and the ACcoefficient (0, 0) and the differences between the AC coefficients(scaling_list_delta_coef) are transmitted. That is, the DC coefficientand the AC coefficients are collectively encoded and transmitted.

In this manner, the collective transmission of the differences arrangedin the order of being obtained allows the decoding side (the decoder) towhich the differences are transmitted to decode the differences in theorder of being transmitted and obtain the individual coefficients. Thatis, a DPCM encoded scaling list can be easily decoded. Morespecifically, the processing load can be reduced. In addition, therearrangement of the differences is no longer necessary, resulting in areduction in buffer capacity. Furthermore, the respective differencescan be decoded in the order of being supplied, resulting in suppressionof an increase in processing time.

<1-3-3. Transmission of Default Matrix>

FIG. 8 is a diagram illustrating an example of the syntax for thetransmission of a default matrix. In the related art, as illustrated inFIG. 8, the initial coefficient (that is, the DC coefficient) istransmitted as “0” to transmit information indicating the use of adefault matrix. That is, the value of the difference between the DCcoefficient and the initial value “8” (scaling_list_dc_coef_minus8) is“−8”. However, as illustrated in FIG. 6, the exponential Golomb code forthe value “−8” has a code length of 9 bits. That is, there is a concernthat coding efficiency may be significantly reduced. In general, it isdesirable that the number of bits of High Level Syntax is as small aspossible. In addition, as illustrated in FIG. 8, due to the increasedcomplexity of the syntax, the processing load may be increased.

To address these issues, the initial coefficient is not set to “0” butthe semantics of scaling_list_pred_matrix_id_delta is modified. Morespecifically, the semantics of scaling_list_pred_matrix_id_delta ismodified from that illustrated in part A of FIG. 9 to that illustratedin part B of FIG. 9. That is, in the related art, as illustrated in partA of FIG. 9, the value equal to “0” indicates that the immediatelypreceding matrix (MatrixID−1) is referred to. Instead of thisdescription, as illustrated in part B of FIG. 9, the value ofscaling_list_pred_matrix_id_delta equal to “0” means that a defaultmatrix is referred to.

Accordingly, the code length of an exponential Golomb code for thetransmission of information indicating the use of a default matrix canbe equal to 1 bit, and a reduction in coding efficiency can besuppressed. Furthermore, in the related art, syntax as illustrated inparts A and B of FIG. 10 is necessary for a scaling list. This syntaxcan be simplified as in an example illustrated in FIG. 11. That is, theprocessing load involved in the encoding and decoding of a scaling listcan be reduced.

<1-4. Features of Syntax With Use of Present Technology>

Syntax will be more specifically described.

In the example of the related art illustrated in parts A and B of FIG.10, the determination of default needs to be performed twice, namely,scaling_list_dc_coef_minus8 and scaling_list_delta_coef. In addition,for scaling_list_delta_coef, determination is made in the middle of the“for” loop, and the loop exits when useDefaultScalingMatrixFlag=1.Furthermore, an intermediate flag called “stopNow” is needed, and,because of this condition, a branch such as substituting nextCoef intothe value of scalingList further exists. In this manner, the syntax ofthe related art involves complicated processing.

In the present technology, accordingly, as in the example illustrated inFIG. 11, the DC coefficient calculated from scaling_list_dc_coef_minus8is substituted into nextCoef to set the initial value ofscaling_list_delta_coef to the DC coefficient.

Furthermore, in semantics, the value ofscaling_list_pred_matrix_id_delta, which is represented by “+1” in therelated art, remains unchanged, and the value “0” is used as a specialvalue.

That is to say, in the related art, when ScalingList[0] [2] is to bedecoded (matrixId=2), if scaling_list_pred_matrix_id_delta=0, thenmatrixId=2 is obtained fromrefMatrixId=matrixId−(1+scaling_list_pred_matrix_id_delta). Thus,refMatrixId=1 is obtained, and the value of ScalingList[0] [1] iscopied.

In contrast, in the present technology,refMatrixId=matrixId−scaling_list_pred_matrix_id_delta is set. WhenScalingList[0] [2] is to be decoded (matrixId=2),scaling_list_pred_matrix_id_delta=1 may be set if ScalingList[0] [1] isto be copied (or if refMatrixId=1 is to be obtained).

Accordingly, as illustrated in FIG. 11, the number of rows of the syntaxfor a scaling list can be significantly reduced. In addition, twovariables to be included as intermediate data, namely,UseDefaultScalingMatrix and stopNow, can be omitted. Furthermore, branchmade in the “for” loop as illustrated in FIG. 10 can be no longerrequired. Therefore, the processing load involved in the encoding anddecoding of a scaling list can be reduced.

<1-5. Processing Units Implementing Present Technology>

In a case where the present technology is applied to the transmission ofa scaling list, a scaling list is encoded and decoded in the mannerdescribed above. Specifically, an image encoding device 10 describedbelow with reference to FIG. 14 encodes a scaling list and transmits theencoded scaling list, and an image decoding device 300 described belowwith reference to FIG. 22 receives and decodes the encoded scaling list.

A scaling list is encoded by a matrix processing unit 150 (FIG. 15) inan orthogonal transform/quantization unit (FIG. 14) of the imageencoding device 10. More specifically, a scaling list is encoded by aDPCM unit 192 and an exp-G unit 193 (both are illustrated in FIG. 16) inan entropy encoding unit 164 (FIG. 16) in the matrix processing unit150. That is, the DPCM unit 192 determines differences betweencoefficients (the DC coefficient and the AC coefficients) of the scalinglist, and the exp-G unit 193 encodes the individual differences usingexponential Golomb coding.

In order to encode a scaling list using the present technology asdescribed above, the DPCM unit 192 may have an example configuration asillustrated in, for example, FIG. 19, and may perform a DPCM process asin an example illustrated in FIG. 21. Furthermore, semantics as in anexample illustrated in part C of FIG. 44 or part C of FIG. 45 may beused.

In other words, only the DPCM unit 192 and the exp-G unit 193 may berequired to achieve the encoding of a scaling list using the presenttechnology, and other components having any configuration may be used asdesired. A necessary configuration, such as a processing unit forup-converting a scaling list and a processing unit for performingquantization using a scaling list, may be provided in accordance withembodiments.

Furthermore, a scaling list is decoded by a matrix generation unit 410(FIG. 23) in a dequantization/inverse orthogonal transform unit 313(FIG. 22) of the image decoding device 300. More specifically, a scalinglist is decoded by an exp-G unit 551 and an inverse DPCM unit 552 (FIG.24) in an entropy decoding unit 533 (FIG. 24) in the matrix generationunit 410. That is, the exp-G unit 551 decodes the Golomb codes to obtaindifferences, and the inverse DPCM unit 552 determines individualcoefficients (the DC coefficient and the AC coefficients) of the scalinglist from the respective differences.

In order to decode an encoded scaling list using the present technologyas described above, the inverse DPCM unit 552 may have an exampleconfiguration as illustrated in, for example, FIG. 26, and may performan inverse DPCM process as in an example illustrated in FIG. 29.Furthermore, semantics as in an example illustrated in part C of FIG. 44or part C of FIG. 45 may be used.

In other words, only the exp-G unit 551 and the inverse DPCM unit 552may be required to achieve the decoding of a scaling list using thepresent technology, and other components having any configuration may beused as desired. A necessary configuration, such as a processing unitfor up-converting a scaling list and a processing unit for performingdequantization using a scaling list, may be provided in accordance withembodiments.

Individual embodiments to which the present technology is applied willbe described hereinafter for more detailed description of the presenttechnology.

<2. Second Embodiment>

<2-1. Syntax: First method>

(1) Syntax of Related Art

First, FIG. 12 illustrates an example of the syntax of a quantizationmatrix (or scaling list) in the related art. In actual use, a differencematrix between a scaling list and a prediction matrix thereof, ratherthan the scaling list, is generally transmitted. Thus, in the followingdescription of syntax and so forth, it is assumed that the descriptionof a scaling list can also apply to a difference matrix.

Part A of FIG. 12 illustrates the syntax for scaling list data (scalinglist data syntax), and part B of FIG. 12 illustrates the syntax of ascaling list (scaling list syntax).

(1-1) Scaling List Data Syntax

As illustrated in part A of FIG. 12, the syntax for scaling list dataspecifies that a flag (scaling_list_present_flag) indicating whether ornot a scaling list is provided, a flag (scaling_list_pred_mode_flag)indicating whether or not the current mode is a copy mode, information(scaling_list_pred_matrix_id_delta) indicating which scaling list torefer to in the copy mode, and so forth are read.

(1-2) Scaling List Syntax

As illustrated in part B of FIG. 12, the syntax of a scaling listspecifies that the DC coefficient from which a constant (for example, 8)is subtracted (scaling_list_dc_coef_minus8), a difference value(scaling_list_delta_coef) between AC coefficients, and so forth are readand that the DC coefficient and the AC coefficients are restored.

However, there is a concern that the pieces of syntax described abovewill not provide sufficient compression efficiency of the DC coefficientalthough it facilitates processes.

Accordingly, in order to obtain sufficient compression efficiency of aDC coefficient (also referred to as a direct current coefficient), whichis the coefficient of the DC component (direct current component), adifference between the DC coefficient and another coefficient isdetermined, and the difference value is transmitted instead of the DCcoefficient. That is, the difference value is information forcalculating the DC coefficient, and, in other words, is substantiallyequivalent to the DC coefficient. However, the difference value isgenerally smaller than the DC coefficient. Therefore, the transmissionof the difference value instead of the DC coefficient may result in areduction in the amount of coding.

In the following description, for convenience of description, a scalinglist (quantization matrix) has an 8×8 size. A specific example of themethod for transmitting a difference between the DC coefficient andanother coefficient, instead of the DC coefficient, described above willbe described hereinafter.

(2) Syntax for First Method

For example, 65 coefficients may be transmitted using DPCM (DifferentialPulse Code Modulation), where the DC coefficient is considered as theelement located at the beginning of an 8×8 matrix (AC coefficients)(first method).

That is, first, a difference between a predetermined constant and the DCcoefficient is calculated, and is used as the initial coefficient ofDPCM data. Then, a difference between the DC coefficient and the initialAC coefficient is calculated, and is used as the second coefficient ofthe DPCM data. Then, a difference between the initial AC coefficient andthe second AC coefficient is calculated, and is used as the thirdcoefficient of the DPCM data. Subsequently, a difference from theimmediately preceding AC coefficient is calculated, and is used as thefourth coefficient of the DPCM data, and the following coefficients ofthe DPCM data are determined in a manner similar to that describedabove. The coefficients of DPCM data generated in the manner describedabove are sequentially transmitted, starting from the initialcoefficient.

Accordingly, compression ratio can be improved when the values of the(0, 0) coefficient (AC coefficient) of an 8×8 matrix and the DCcoefficient are close to each other. By implementing the first methoddescribed above, an image encoding device can process the DC coefficientin a manner similar to that of AC coefficients (alternating currentcoefficients), which are the coefficients of the AC components (alsoreferred to as the alternating current components). Note that, in orderto implement the first method described above, an image decoding deviceto which the coefficients described above are transmitted needs tospecially handle only the initial coefficient. Specifically, the imagedecoding device needs to extract the DC coefficient from among the ACcoefficients.

FIG. 13 illustrates the syntax of a scaling list in the case describedabove. In the example illustrated in FIG. 13, 65 difference values(scaling_list_delta_coef) between coefficients are read, and, amongcoefficients (nextcoef) determined from the difference values, thecoefficient (nextcoef) located at the beginning is used as the DCcoefficient (scaling_list_dc_coef) while the other coefficients are usedas the AC coefficients (ScalingList[i]).

An image encoding device that implements the syntax for the first methoddescribed above will be described hereinafter.

<2-2. Image Encoding Device>

FIG. 14 is a block diagram illustrating an example configuration of animage encoding device 10 according to an embodiment of the presentdisclosure. The image encoding device 10 illustrated in FIG. 14 is animage processing device to which the present technology is applied andthat is configured to encode input image data and output the encodedimage data. Referring to FIG. 14, the image encoding device 10 includesan A/D (Analogue to Digital) conversion unit 11 (A/D), a rearrangementbuffer 12, a subtraction unit 13, an orthogonal transform/quantizationunit 14, a lossless encoding unit 16, an accumulation buffer 17, a ratecontrol unit 18, a dequantization unit 21, an inverse orthogonaltransform unit 22, an adder unit 23, a deblocking filter 24, a framememory 25, a selector 26, an intra prediction unit 30, a motion searchunit 40, and a mode selection unit 50.

The A/D conversion unit 11 converts an image signal input in analog formto image data in digital form, and outputs a digital image data sequenceto the rearrangement buffer 12.

The rearrangement buffer 12 rearranges images included in the image datasequence input from the A/D conversion unit 11. After rearranging theimages in accordance with a GOP (Group of Pictures) structure for use inan encoding process, the rearrangement buffer 12 outputs the image datain which the images have been rearranged to the subtraction unit 13, theintra prediction unit 30, and the motion search unit 40.

The subtraction unit 13 is supplied with the image data input from therearrangement buffer 12 and prediction image data selected by the modeselection unit 50, which will be described below. The subtraction unit13 calculates prediction error data that represents the differencebetween the image data input from the rearrangement buffer 12 and theprediction image data input from the mode selection unit 50, and outputsthe calculated prediction error data to the orthogonaltransform/quantization unit 14.

The orthogonal transform/quantization unit 14 performs an orthogonaltransform and quantization on the prediction error data input from thesubtraction unit 13, and outputs quantized transform coefficient data(hereinafter referred to as quantized data) to the lossless encodingunit 16 and the dequantization unit 21. The bit rate of the quantizeddata output from the orthogonal transform/quantization unit 14 iscontrolled in accordance with a rate control signal supplied from therate control unit 18. A detailed configuration of the orthogonaltransform/quantization unit 14 will further be described below.

The lossless encoding unit 16 is supplied with the quantized data inputfrom the orthogonal transform/quantization unit 14, information forgenerating a scaling list (or quantization matrix) on the decoding side,and information concerning intra prediction or inter prediction which isselected by the mode selection unit 50. The information concerning intraprediction may include, for example, prediction mode informationindicating an optimum intra-prediction mode for each block. Furthermore,the information concerning inter prediction may include, for example,prediction mode information for block-by-block prediction of motionvectors, differential motion vector information, reference imageinformation, and so forth. Moreover, the information for generating ascaling list on the decoding side may include identification informationindicating a maximum size of a scaling list to be transmitted (or adifference matrix between a scaling list (quantization matrix) and aprediction matrix thereof).

The lossless encoding unit 16 performs a lossless encoding process onthe quantized data to generate an encoded stream. The lossless encodingperformed by the lossless encoding unit 16 may be, for example,variable-length encoding, arithmetic encoding, or the like. Furthermore,the lossless encoding unit 16 multiplexes information for generating ascaling list into the header (for example, a sequence parameter set anda picture parameter set) of the encoded stream. The lossless encodingunit 16 further multiplexes the information concerning intra predictionor inter prediction described above into the header of the encodedstream. After that, the lossless encoding unit 16 outputs the generatedencoded stream to the accumulation buffer 17.

The accumulation buffer 17 temporarily accumulates the encoded streaminput from the lossless encoding unit 16, using a storage medium such asa semiconductor memory. After that, the accumulation buffer 17 outputsthe accumulated encoded stream at a rate corresponding to the bandwidthof a transmission path (or an output line from the image encoding device10).

The rate control unit 18 monitors the accumulation buffer 17 to checkthe availability of capacity. The rate control unit 18 generates a ratecontrol signal in accordance with the available capacity of theaccumulation buffer 17, and outputs the generated rate control signal tothe orthogonal transform/quantization unit 14. For example, when theavailable capacity of the accumulation buffer 17 is low, the ratecontrol unit 18 generates a rate control signal for reducing the bitrate of the quantized data. Alternatively, for example, when theavailable capacity of the accumulation buffer 17 is sufficiently high,the rate control unit 18 generates a rate control signal for increasingthe bit rate of the quantized data.

The dequantization unit 21 performs a dequantization process on thequantized data input from the orthogonal transform/quantization unit 14.After that, the dequantization unit 21 outputs transform coefficientdata acquired through the dequantization process to the inverseorthogonal transform unit 22.

The inverse orthogonal transform unit 22 performs an inverse orthogonaltransform process on the transform coefficient data input from thedequantization unit 21 to restore prediction error data. After that, theinverse orthogonal transform unit 22 outputs the restored predictionerror data to the adder unit 23.

The adder unit 23 adds together the restored prediction error data inputfrom the inverse orthogonal transform unit 22 and the prediction imagedata input from the mode selection unit 50 to generate decoded imagedata. After that, the adder unit 23 outputs the generated decoded imagedata to the deblocking filter 24 and the frame memory 25.

The deblocking filter 24 performs a filtering process for reducingblocking artifacts caused by the encoding of an image. The deblockingfilter 24 filters the decoded image data input from the adder unit 23 toremove (or at least reduce) blocking artifacts, and outputs the filtereddecoded image data to the frame memory 25.

The frame memory 25 stores the decoded image data input from the adderunit 23 and the filtered decoded image data input from the deblockingfilter 24, using a storage medium.

The selector 26 reads decoded image data to be filtered, which is usedfor intra prediction, from the frame memory 25, and supplies the readdecoded image data to the intra prediction unit 30 as reference imagedata. The selector 26 further reads filtered decoded image data, whichis used for inter prediction, from the frame memory 25, and supplies theread decoded image data to the motion search unit 40 as reference imagedata.

The intra prediction unit 30 performs an intra prediction process ineach intra-prediction mode on the basis of the image data to be encoded,which is input from the rearrangement buffer 12, and the decoded imagedata supplied via the selector 26. For example, the intra predictionunit 30 evaluates a prediction result obtained in each intra-predictionmode using a predetermined cost function. Then, the intra predictionunit 30 selects an intra-prediction mode that minimizes the costfunction value, that is, an intra-prediction mode that provides thehighest compression ratio, as an optimum intra-prediction mode.Furthermore, the intra prediction unit 30 outputs prediction modeinformation indicating the optimum intra-prediction mode, predictionimage data, and information concerning intra prediction, such as thecost function value, to the mode selection unit 50.

The motion search unit 40 performs an inter prediction process (or aninter-frame prediction process) on the basis of the image data to beencoded, which is input from the rearrangement buffer 12, and thedecoded image data supplied via the selector 26. For example, the motionsearch unit 40 evaluates a prediction result obtained in each predictionmode using a predetermined cost function. Then, the motion search unit40 selects a prediction mode that minimizes the cost function value,that is, a prediction mode that provides the highest compression ratio,as an optimum prediction mode. Furthermore, the motion search unit 40generates prediction image data in accordance with the optimumprediction mode. The motion search unit 40 outputs informationconcerning inter prediction which includes prediction mode informationindicating the selected optimum prediction mode, the prediction imagedata, and information concerning inter prediction, such as the costfunction value, to the mode selection unit 50.

The mode selection unit 50 compares the cost function value for intraprediction, which is input from the intra prediction unit 30, with thecost function value for inter prediction, which is input from the motionsearch unit 40. Then, the mode selection unit 50 selects a predictiontechnique having the smaller one of the cost function values for intraprediction and inter prediction. If intra prediction is selected, themode selection unit 50 outputs the information concerning intraprediction to the lossless encoding unit 16, and also outputs theprediction image data to the subtraction unit 13 and the adder unit 23.Alternatively, if inter prediction is selected, the mode selection unit50 outputs the information concerning inter prediction described aboveto the lossless encoding unit 16, and also outputs the prediction imagedata to the subtraction unit 13 and the adder unit 23.

<2-3. Example Configuration of Orthogonal Transform/Quantization Unit>

FIG. 15 is a block diagram illustrating an example of a detailedconfiguration of the orthogonal transform/quantization unit 14 of theimage encoding device 10 illustrated in FIG. 14. Referring to FIG. 15,the orthogonal transform/quantization unit 14 includes a selection unit110, an orthogonal transform unit 120, a quantization unit 130, ascaling list buffer 140, and a matrix processing unit 150.

(1) Selection Unit

The selection unit 110 selects a transform unit (TU) to be used for theorthogonal transform of image data to be encoded from among a pluralityof transform units having different sizes. Examples of possible sizes oftransform units selectable by the selection unit 110 include 4×4 and 8×8for H.264/AVC (Advanced Video Coding), and include 4×4, 8×8, 16×16, and32×32 for HEVC (High Efficiency Video Coding). The selection unit 110may select a transform unit in accordance with, for example, the size orquality of an image to be encoded, the performance of the image encodingdevice 10, or the like. The selection of a transform unit by theselection unit 110 may be hand-tuned by a user who develops the imageencoding device 10. After that, the selection unit 110 outputsinformation that specifies the size of the selected transform unit tothe orthogonal transform unit 120, the quantization unit 130, thelossless encoding unit 16, and the dequantization unit 21.

(2) Orthogonal Transform Unit

The orthogonal transform unit 120 performs an orthogonal transform onthe image data (that is, prediction error data) supplied from thesubtraction unit 13, in units of the transform unit selected by theselection unit 110. The orthogonal transform performed by the orthogonaltransform unit 120 may be, for example, discrete cosine transform (DCT),Karhunen-Loève transform, or the like. After that, the orthogonaltransform unit 120 outputs transform coefficient data acquired throughthe orthogonal transform process to the quantization unit 130.

(3) Quantization Unit

The quantization unit 130 quantizes the transform coefficient datagenerated by the orthogonal transform unit 120, by using a scaling listcorresponding to the transform unit selected by the selection unit 110.Furthermore, the quantization unit 130 switches the quantization stepsize in accordance with the rate control signal supplied from the ratecontrol unit 18 to change the bit rate of the quantized data to beoutput.

Furthermore, the quantization unit 130 causes sets of scaling listsrespectively corresponding to a plurality of transform units selectableby the selection unit 110 to be stored in the scaling list buffer 140.For example, as in HEVC, if there are four possible sizes of transformunits, namely, 4×4, 8×8, 16×16, and 32×32, four sets of scaling listsrespectively corresponding to the four sizes may be stored in thescaling list buffer 140. Note that if a specified scaling list is usedfor a given size, only a flag indicating that the specified scaling listis used (a scaling list defined by the user is not used) may be storedin the scaling list buffer 140 in association with the given size.

A set of scaling lists that may be used by the quantization unit 130 maybe typically set for each sequence of the encoded stream. In addition,the quantization unit 130 may update a set of scaling lists that is setfor each sequence on a picture-by-picture basis. Information forcontrolling the setting and update of a set of scaling lists may beinserted in, for example, a sequence parameter set and a pictureparameter set.

(4) Scaling List Buffer

The scaling list buffer 140 temporarily stores a set of scaling listsrespectively corresponding to a plurality of transform units selectableby the selection unit 110, using a storage medium such as asemiconductor memory. The set of scaling lists stored in the scalinglist buffer 140 is referred to when the matrix processing unit 150performs a process described below.

(5) Matrix Processing Unit

The matrix processing unit 150 encodes a scaling list to be used forencoding (quantization). After that, the encoded data of the scalinglist (hereinafter referred to as encoded scaling list data) generated bythe matrix processing unit 150 is output to the lossless encoding unit16, and may be inserted into the header of the encoded stream.

<2-4. Detailed Example Configuration of Matrix Processing Unit>

FIG. 16 is a block diagram illustrating an example of a more detailedconfiguration of the matrix processing unit 150. Referring to FIG. 16,the matrix processing unit 150 includes a prediction unit 161, adifference matrix generation unit 162, a difference matrix sizetransformation unit 163, an entropy encoding unit 164, a decoding unit165, and an output unit 166.

(1) Prediction Unit

The prediction unit 161 generates a prediction matrix. As illustrated inFIG. 16, the prediction unit 161 includes a copy unit 171 and aprediction matrix generation unit 172.

In a copy mode, the copy unit 171 copies a previously transmittedscaling list, and uses the copied quantization matrix as a predictionmatrix (or predicts a scaling list of an orthogonal transform unit to beprocessed). More specifically, the copy unit 171 acquires the size andlist ID (ListID) of a previously transmitted scaling list from a storageunit 202 in the decoding unit 165. The size is information indicatingthe size of the scaling list (ranging from, for example, 4×4 to 32×32).The list ID is information indicating the type of prediction error datato be quantized.

For example, the list ID includes identification information indicatingthat the prediction error data to be quantized is prediction error data(Intra Luma) of the luminance component which is generated using aprediction image subjected to intra prediction, prediction error data(Intra Cr) of the color difference component (Cr) which is generatedusing a prediction image subjected to intra prediction, prediction errordata (Intra Cb) of the color difference component (Cb) which isgenerated using a prediction image subjected to intra prediction, orprediction error data (Inter Luma) of the luminance component which isgenerated using a prediction image subjected to inter prediction.

The copy unit 171 selects, as a scaling list to be copied, a previouslytransmitted scaling list of the same size as the scaling list (scalinglist of an orthogonal transform unit to be processed) input to thematrix processing unit 150, and supplies the list ID of the scaling listto be copied to the output unit 166 to output the list ID to devicesoutside the matrix processing unit 150 (the lossless encoding unit 16and the dequantization unit 21). That is, in this case, only the list IDis transmitted to the decoding side (or is included in encoded data) asinformation indicating a prediction matrix generated by copying thepreviously transmitted scaling list. Thus, the image encoding device 10can suppress an increase in the amount of coding of a scaling list.

Furthermore, in a normal mode, the prediction matrix generation unit 172acquires a previously transmitted scaling list from the storage unit 202in the decoding unit 165, and generates a prediction matrix using thescaling list (or predicts a scaling list of an orthogonal transform unitto be processed). The prediction matrix generation unit 172 supplies thegenerated prediction matrix to the difference matrix generation unit162.

(2) Difference Matrix Generation Unit

The difference matrix generation unit 162 generates a difference matrix(residual matrix) that is a difference between the prediction matrixsupplied from the prediction unit 161 (the prediction matrix generationunit 172) and the scaling list input to the matrix processing unit 150.As illustrated in FIG. 16, the difference matrix generation unit 162includes a prediction matrix size transformation unit 181, a computationunit 182, and a quantization unit 183.

The prediction matrix size transformation unit 181 transforms(hereinafter also referred to as converts) the size of the predictionmatrix supplied from the prediction matrix generation unit 172 so thatthe size of the prediction matrix matches the size of the scaling listinput to the matrix processing unit 150.

For example, if the size of the prediction matrix is larger than thesize of the scaling list, the prediction matrix size transformation unit181 downward converts (hereinafter also referred to as down-converts)the prediction matrix. More specifically, for example, when theprediction matrix has a 16×16 size and the scaling list has an 8×8 size,the prediction matrix size transformation unit 181 down-converts theprediction matrix to an 8×8 prediction matrix. Note that any method fordown-conversion may be used. For example, the prediction matrix sizetransformation unit 181 may reduce the number of elements in theprediction matrix (hereinafter also referred to as downsampling) byusing a filter (through computation). Alternatively, the predictionmatrix size transformation unit 181 may also reduce the number ofelements in the prediction matrix by, for example, as illustrated inFIG. 17, thinning out some of the elements (for example, only the evennumbered elements (in FIG. 17, the elements in solid black) among thetwo-dimensional elements) without using a filter (hereinafter alsoreferred to as subsampling).

Furthermore, for example, if the size of the prediction matrix issmaller than the size of the scaling list, the prediction matrix sizetransformation unit 181 upward converts (hereinafter also referred to asup-converts) the prediction matrix. More specifically, for example, whenthe prediction matrix has an 8×8 size and the scaling list has a 16×16size, the prediction matrix size transformation unit 181 up-converts theprediction matrix to a 16×16 prediction matrix. Note that any method forup-conversion may be used. For example, the prediction matrix sizetransformation unit 181 may increase the number of elements in theprediction matrix (hereinafter also referred to as upsampling) by usinga filter (through computation). Alternatively, the prediction matrixsize transformation unit 181 may also increase the number of elements inthe prediction matrix by, for example, copying the individual elementsin the prediction matrix without using a filter (hereinafter alsoreferred to as inverse subsampling).

The prediction matrix size transformation unit 181 supplies theprediction matrix whose size has been made to match that of the scalinglist to the computation unit 182.

The computation unit 182 subtracts the scaling list input to the matrixprocessing unit 150 from the prediction matrix supplied from theprediction matrix size transformation unit 181, and generates adifference matrix (residual matrix). The computation unit 182 suppliesthe calculated difference matrix to the quantization unit 183.

The quantization unit 183 quantizes the difference matrix supplied fromthe computation unit 182. The quantization unit 183 supplies thequantized difference matrix to the difference matrix size transformationunit 163. The quantization unit 183 further supplies information usedfor quantization, such as quantization parameters, to the output unit166 to output the information to devices outside the matrix processingunit 150 (the lossless encoding unit 16 and the dequantization unit 21).Note that the quantization unit 183 may be omitted (that is, thequantization of the difference matrix may not necessarily be performed).

(3) Difference Matrix Size Transformation Unit

The difference matrix size transformation unit 163 converts the size ofthe difference matrix (quantized data) supplied from the differencematrix generation unit 162 (the quantization unit 183) to a size lessthan or equal to a maximum size allowed in transmission (hereinafteralso referred to as a transmission size), if necessary. The maximum sizemay have any optional value, and is, for example, 8×8.

The encoded data output from the image encoding device 10 is transmittedto an image decoding device corresponding to the image encoding device10 via, for example, a transmission path or a storage medium, and isdecoded by the image decoding device. The upper limit of the size(maximum size) of the difference matrix (quantized data) during suchtransmission, or in the encoded data output from the image encodingdevice 10, is set in the image encoding device 10.

If the size of the difference matrix is larger than the maximum size,the difference matrix size transformation unit 163 down-converts thedifference matrix so that the size of the difference matrix becomes lessthan or equal to the maximum size.

Note that, similarly to the down-conversion of the prediction matrixdescribed above, the difference matrix may be down-converted using anymethod. For example, downsampling may be performed using a filter or thelike, or subsampling which involves thinning out elements may beperformed.

Furthermore, the down-converted difference matrix may have any sizesmaller than the maximum size. However, in general, the larger thedifference in size between before and after conversion is, the largerthe error becomes. It is thus desirable that the difference matrix bedown-converted to the maximum size.

The difference matrix size transformation unit 163 supplies thedown-converted difference matrix to the entropy encoding unit 164. Notethat if the size of the difference matrix is smaller than the maximumsize, the down-conversion described above is not necessary, andtherefore the difference matrix size transformation unit 163 suppliesthe difference matrix input thereto to the entropy encoding unit 164 asit is (that is, the down-conversion of the difference matrix isomitted).

(4) Entropy Encoding Unit

The entropy encoding unit 164 encodes the difference matrix (quantizeddata) supplied from the difference matrix size transformation unit 163using a predetermined method. As illustrated in FIG. 16, the entropyencoding unit 164 includes an overlap determination unit (135-degreeunit) 191, a DPCM (Differential Pulse Code Modulation) unit 192, and anexp-G unit 193.

The overlap determination unit 191 determines symmetry of the differencematrix supplied from the difference matrix size transformation unit 163.If the residue (difference matrix) represents a 135-degree symmetricmatrix, for example, as illustrated in FIG. 18, the overlapdetermination unit 191 removes the data (matrix elements) of thesymmetric part that is overlapping data. If the residue does notrepresent a 135-degree symmetric matrix, the overlap determination unit191 omits the removal of the data (matrix elements). The overlapdetermination unit 191 supplies the data of the difference matrix fromwhich the symmetric part has been removed, if necessary, to the DPCMunit 192.

The DPCM unit 192 performs DPCM encoding of the data of the differencematrix from which the symmetric part has been removed, if necessary,which is supplied from the overlap determination unit 191, and generatesDPCM data. The DPCM unit 192 supplies the generated DPCM data to theexp-G unit 193.

The exp-G unit 193 encodes the DPCM data supplied from the DPCM unit 192using signed or unsigned exponential Golomb codes (hereinafter alsoreferred to as exponential Golomb codes). The exp-G unit 193 suppliesthe encoding result to the decoding unit 165 and the output unit 166.

(5) Decoding Unit

The decoding unit 165 restores a scaling list from the data suppliedfrom the exp-G unit 193. The decoding unit 165 supplies informationconcerning the restored scaling list to the prediction unit 161 as apreviously transmitted scaling list.

As illustrated in FIG. 16, the decoding unit 165 includes a scaling listrestoration unit 201 and the storage unit 202.

The scaling list restoration unit 201 decodes the exponential Golombcodes supplied from the entropy encoding unit 164 (the exp-G unit 193)to restore a scaling list to be input to the matrix processing unit 150.For example, the scaling list restoration unit 201 decodes theexponential Golomb codes using the method corresponding to the encodingmethod for the entropy encoding unit 164, and obtains a differencematrix by performing transformation opposite to size transformationperformed by the difference matrix size transformation unit 163 andperforming dequantization corresponding to quantization performed by thequantization unit 183. The scaling list restoration unit 201 furthersubtracts the obtained difference matrix from the prediction matrix torestore a scaling list.

The scaling list restoration unit 201 supplies the restored scaling listto the storage unit 202 for storage in association with the size and thelist ID of the scaling list.

The storage unit 202 stores information concerning the scaling listsupplied from the scaling list restoration unit 201. The informationconcerning the scaling list stored in the storage unit 202 is used togenerate prediction matrices of other orthogonal transform units whichare processed later in time. That is, the storage unit 202 supplies thestored information concerning the scaling list to the prediction unit161 as information concerning a previously transmitted scaling list.

Note that, instead of storing the information concerning the scalinglist restored in the way described above, the storage unit 202 may storethe scaling list input to the matrix processing unit 150 in associationwith the size and the list ID of the input scaling list. In this case,the scaling list restoration unit 201 can be omitted.

(6) Output Unit

The output unit 166 outputs the supplied various types of information todevices outside the matrix processing unit 150. For example, in the copymode, the output unit 166 supplies the list ID of the prediction matrixsupplied from the copy unit 171 to the lossless encoding unit 16 and thedequantization unit 21. Furthermore, for example, in the normal mode,the output unit 166 supplies the exponential Golomb codes supplied fromthe exp-G unit 193 and the quantization parameters supplied from thequantization unit 183 to the lossless encoding unit 16 and thedequantization unit 21.

The output unit 166 further supplies identification informationindicating a maximum size (transmission size) allowed in thetransmission of a scaling list (or a difference matrix between a scalinglist and a prediction matrix thereof) to the lossless encoding unit 16as information for generating a scaling list on the decoding side. Asdescribed above, the lossless encoding unit 16 creates an encoded streamincluding the information for generating a scaling list, and suppliesthe encoded stream to the decoding side. The identification informationindicating the transmission size may be specified in advance by level,profile, and the like. In this case, information concerning thetransmission size is shared in advance between the apparatus on theencoding side and the apparatus on the decoding side. Thus, thetransmission of the identification information described above can beomitted.

<2-5. Detailed Example Configuration of DPCM Unit>

FIG. 19 is a block diagram illustrating an example of a more detailedconfiguration of the DPCM unit 192. Referring to FIG. 19, the DPCM unit192 includes a DC coefficient encoding unit 211 and an AC coefficientDPCM unit 212.

The DC coefficient encoding unit 211 acquires the DC coefficient fromamong the coefficients supplied from the overlap determination unit 191,subtracts the value of the DC coefficient from a predetermined initialvalue (for example, 8) to determine a difference value, and uses thedifference value as the initial (i=0) difference value(scaling_list_delta_coef). The DC coefficient encoding unit 211 suppliesthe calculated difference value (scaling_list_delta_coef (i=0)) to theexp-G unit 193 as the initial coefficient of the scaling listcorresponding to the region of interest being processed.

The AC coefficient DPCM unit 212 acquires an AC coefficient from amongthe coefficients supplied from the overlap determination unit 191, andsubtracts the value of the AC coefficient from the immediatelypreviously processed coefficient to determine a difference value(scaling_list_delta_coef (i>0)). The AC coefficient DPCM unit 212supplies the determined difference value (scaling_list_delta_coef (i>0))to the exp-G unit 193 as a coefficient of the scaling list correspondingto the region of interest being processed. Note that when i=1, theimmediately preceding coefficient is represented by i=0. Thus, the “DCcoefficient” is the immediately previously processed coefficient.

In this way, the DPCM unit 192 can transmit the DC coefficient as theelement located at the beginning of the scaling list (AC coefficients).Accordingly, the coding efficiency of the scaling list can be improved.

<2-6. Flow of Quantization Matrix Encoding Process>

Next, an example of the flow of a quantization matrix encoding processexecuted by the matrix processing unit 150 illustrated in FIG. 16 willbe described with reference to a flowchart illustrated in FIG. 20.

When the quantization matrix encoding process is started, in step S101,the prediction unit 161 acquires a scaling list (or quantization matrix)for a current region (also referred to as a region of interest) that isan orthogonal transform unit to be processed.

In step S102, the prediction unit 161 determines whether or not thecurrent mode is the copy mode. If it is determined that the current modeis not the copy mode, the prediction unit 161 advances the process tostep S103.

In step S103, the prediction matrix generation unit 172 acquires apreviously transmitted scaling list from the storage unit 202, andgenerates a prediction matrix using the scaling list.

In step S104, the prediction matrix size transformation unit 181determines whether or not the size of the prediction matrix generated instep S103 is different from that of the scaling list for the currentregion (region of interest) acquired in step S101. If it is determinedthat both sizes are different, the prediction matrix size transformationunit 181 advances the process to step S105.

In step S105, the prediction matrix size transformation unit 181converts the size of the prediction matrix generated in step S103 to thesize of the scaling list for the current region acquired in step S101.

When the processing of step S105 is completed, the prediction matrixsize transformation unit 181 advances the process to step S106. If it isdetermined in step S104 that the size of the prediction matrix is thesame as the size of the scaling list, the prediction matrix sizetransformation unit 181 advances the process to step S106 while skippingthe processing of step S105 (or without performing the processing ofstep S105).

In step S106, the computation unit 182 subtracts the scaling list fromthe prediction matrix to calculate a difference matrix between theprediction matrix and the scaling list.

In step S107, the quantization unit 183 quantizes the difference matrixgenerated in step S106. Note that this processing may be omitted.

In step S108, the difference matrix size transformation unit 163determines whether or not the size of the quantized difference matrix islarger than the transmission size (the maximum size allowed intransmission). If it is determined that the size of the quantizeddifference matrix is larger than the transmission size, the differencematrix size transformation unit 163 advances the process to step S109,and down-converts the difference matrix to the transmission size orless.

When the processing of step S109 is completed, the difference matrixsize transformation unit 163 advances the process to step S110.Furthermore, if it is determined in step S108 that the size of thequantized difference matrix is less than or equal to the transmissionsize, the difference matrix size transformation unit 163 advances theprocess to step S110 while skipping the processing of step S109 (orwithout performing the processing of step S109).

In step S110, the overlap determination unit 191 determines whether ornot the quantized difference matrix has 135-degree symmetry. If it isdetermined that the quantized difference matrix has 135-degree symmetry,the overlap determination unit 191 advances the process to step S111.

In step S111, the overlap determination unit 191 removes the overlappingportion (overlapping data) in the quantized difference matrix. After theoverlapping data is removed, the overlap determination unit 191 advancesthe process to step S112.

Furthermore, if it is determined in step S110 that the quantizeddifference matrix does not have 135-degree symmetry, the overlapdetermination unit 191 advances the process to step S112 while skippingthe processing of step S111 (or without performing the processing ofstep S111).

In step S112, the DPCM unit 192 performs DPCM encoding of the differencematrix from which the overlapping portion has been removed, ifnecessary.

In step S113, the exp-G unit 193 determines whether or not DPCM datagenerated in step S112 has a positive or negative sign. If it isdetermined that a sign is included, the exp-G unit 193 advances theprocess to step S114.

In step S114, the exp-G unit 193 encodes the DPCM data using signedexponential Golomb coding. The output unit 166 outputs generatedexponential Golomb codes to the lossless encoding unit 16 and thedequantization unit 21. When the processing of step S114 is completed,the exp-G unit 193 advances the process to step S116.

Furthermore, if it is determined in step S113 that no sign is included,the exp-G unit 193 advances the process to step S115.

In step S115, the exp-G unit 193 encodes the DPCM data using unsignedexponential Golomb coding. The output unit 166 outputs generatedexponential Golomb codes to the lossless encoding unit 16 and thedequantization unit 21. When the processing of step S115 is completed,the exp-G unit 193 advances the process to step S116.

Furthermore, if it is determined in step S102 that the current mode isthe copy mode, the copy unit 171 copies a previously transmitted scalinglist, and uses the copied scaling list as a prediction matrix. Theoutput unit 166 outputs the list ID corresponding to the predictionmatrix to the lossless encoding unit 16 and the dequantization unit 21as information indicating the prediction matrix. Then, the copy unit 171advances the process to step S116.

In step S116, the scaling list restoration unit 201 restores a scalinglist. In step S117, the storage unit 202 stores the scaling listrestored in step S116.

When the processing of step S117 is completed, the matrix processingunit 150 ends the quantization matrix encoding process.

<2-7. Flow of DPCM Process>

Next, an example of a flow of the DPCM process executed in step S112 inFIG. 20 will be described with reference to a flowchart illustrated inFIG. 21.

When the DPCM process is started, in step S131, the DC coefficientencoding unit 211 determines a difference between the DC coefficient anda constant. In step S132, the AC coefficient DPCM unit 212 determines adifference between the DC coefficient and the initial AC coefficient.

In step S133, the AC coefficient DPCM unit 212 determines whether or notall the AC coefficients have been processed. If it is determined thatthere is an unprocessed AC coefficient, the AC coefficient DPCM unit 212advances the process to step S134.

In step S134, the AC coefficient DPCM unit 212 shifts the processingtarget to the subsequent AC coefficient. In step S135, the ACcoefficient DPCM unit 212 determines a difference between the previouslyprocessed AC coefficient and the current AC coefficient being processed.When the processing of step S135 is completed, the AC coefficient DPCMunit 212 returns the process to step S133.

In this manner, as long as it is determined in step S133 that there isan unprocessed AC coefficient, the AC coefficient DPCM unit 212repeatedly executes the processing of steps S133 to S135. If it isdetermined in step S133 that there is no unprocessed AC coefficient, theAC coefficient DPCM unit 212 ends the DPCM process, and returns theprocess to FIG. 20.

As described above, a difference between the DC coefficient and the ACcoefficient located at the beginning among the AC coefficients isdetermined, and the difference instead of the DC coefficient istransmitted to an image decoding device. Thus, the image encoding device10 can suppress an increase in the amount of coding of a scaling list.

Next, an example configuration of an image decoding device according toan embodiment of the present disclosure will be described.

<2-8. Image Decoding Device>

FIG. 22 is a block diagram illustrating an example configuration of animage decoding device 300 according to an embodiment of the presentdisclosure. The image decoding device 300 illustrated in FIG. 22 is animage processing device to which the present technology is applied andthat is configured to decode encoded data generated by the imageencoding device 10. Referring to FIG. 22, the image decoding device 300includes an accumulation buffer 311, a lossless decoding unit 312, adequantization/inverse orthogonal transform unit 313, an adder unit 315,a deblocking filter 316, a rearrangement buffer 317, a D/A (Digital toAnalogue) conversion unit 318, a frame memory 319, selectors 320 and321, an intra prediction unit 330, and a motion compensation unit 340.

The accumulation buffer 311 temporarily accumulates an encoded streaminput via a transmission path, using a storage medium.

The lossless decoding unit 312 decodes the encoded stream input from theaccumulation buffer 311 in accordance with the encoding scheme used forencoding. The lossless decoding unit 312 further decodes the informationmultiplexed in the header region of the encoded stream. The informationmultiplexed in the header region of the encoded stream may include, forexample, the information for generating a scaling list described above,and information concerning intra prediction and information concerninginter prediction, which are contained in the block header. The losslessdecoding unit 312 outputs the decoded quantized data and the informationfor generating a scaling list to the dequantization/inverse orthogonaltransform unit 313. The lossless decoding unit 312 further outputs theinformation concerning intra prediction to the intra prediction unit330. The lossless decoding unit 312 further outputs the informationconcerning inter prediction to the motion compensation unit 340.

The dequantization/inverse orthogonal transform unit 313 performsdequantization and an inverse orthogonal transform on the quantized datainput from the lossless decoding unit 312 to generate prediction errordata. After that, the dequantization/inverse orthogonal transform unit313 outputs the generated prediction error data to the adder unit 315.

The adder unit 315 adds together the prediction error data input fromthe dequantization/inverse orthogonal transform unit 313 and predictionimage data input from the selector 321 to generate decoded image data.After that, the adder unit 315 outputs the generated decoded image datato the deblocking filter 316 and the frame memory 319.

The deblocking filter 316 filters the decoded image data input from theadder unit 315 to remove blocking artifacts, and outputs the filtereddecoded image data to the rearrangement buffer 317 and the frame memory319.

The rearrangement buffer 317 rearranges images input from the deblockingfilter 316 to generate a time-series image data sequence. After that,the rearrangement buffer 317 outputs the generated image data to the D/Aconversion unit 318.

The D/A conversion unit 318 converts the image data in digital formwhich is input from the rearrangement buffer 317 to an image signal inanalog form. After that, the D/A conversion unit 318 outputs the analogimage signal to, for example, a display (not illustrated) connected tothe image decoding device 300 to display an image.

The frame memory 319 stores the decoded image data to be filtered, whichis input from the adder unit 315, and the filtered decoded image datainput from the deblocking filter 316, using a storage medium.

The selector 320 switches the destination to which the image datasupplied from the frame memory 319 is to be output between the intraprediction unit 330 and the motion compensation unit 340, for each blockin the image, in accordance with mode information acquired by thelossless decoding unit 312. For example, if an intra-prediction mode isspecified, the selector 320 outputs the decoded image data to befiltered, which is supplied from the frame memory 319, to the intraprediction unit 330 as reference image data. Furthermore, if aninter-prediction mode is specified, the selector 320 outputs thefiltered decoded image data supplied from the frame memory 319 to themotion compensation unit 340 as reference image data.

The selector 321 switches the source from which prediction image data tobe supplied to the adder unit 315 is to be output between the intraprediction unit 330 and the motion compensation unit 340, for each blockin the image, in accordance with mode information acquired by thelossless decoding unit 312. For example, if the intra-prediction mode isspecified, the selector 321 supplies the prediction image data outputfrom the intra prediction unit 330 to the adder unit 315. If theinter-prediction mode is specified, the selector 321 supplies theprediction image data output from the motion compensation unit 340 tothe adder unit 315.

The intra prediction unit 330 performs intra-screen prediction of apixel value based on the information concerning intra prediction, whichis input from the lossless decoding unit 312, and the reference imagedata supplied from the frame memory 319, and generates prediction imagedata. After that, the intra prediction unit 330 outputs the generatedprediction image data to the selector 321.

The motion compensation unit 340 performs a motion compensation processbased on the information concerning inter prediction, which is inputfrom the lossless decoding unit 312, and the reference image datasupplied from the frame memory 319, and generates prediction image data.After that, the motion compensation unit 340 outputs the generatedprediction image data to the selector 321.

<2-9. Example Configuration of Dequantization/Inverse OrthogonalTransform Unit>

FIG. 23 is a block diagram illustrating an example of a mainconfiguration of the dequantization/inverse orthogonal transform unit313 of the image decoding device 300 illustrated in FIG. 22. Referringto FIG. 23, the dequantization/inverse orthogonal transform unit 313includes a matrix generation unit 410, a selection unit 430, adequantization unit 440, and an inverse orthogonal transform unit 450.

(1) Matrix Generation Unit

The matrix generation unit 410 decodes encoded scaling list data whichis extracted from a bit stream and supplied by the lossless decodingunit 312, and generates a scaling list. The matrix generation unit 410supplies the generated scaling list to the dequantization unit 440.

(2) Selection Unit

The selection unit 430 selects a transform unit (TU) to be used for theinverse orthogonal transform of image data to be decoded from among aplurality of transform units having different sizes. Examples ofpossible sizes of transform units selectable by the selection unit 430include 4×4 and 8×8 for H.264/AVC, and include 4×4, 8×8, 16×16, and32×32 for HEVC. The selection unit 430 may select a transform unit inaccordance with, for example, the LCU, SCU, and split flag contained inthe header of the encoded stream. After that, the selection unit 430outputs information specifying the size of the selected transform unitto the dequantization unit 440 and the inverse orthogonal transform unit450.

(3) Dequantization Unit

The dequantization unit 440 dequantizes transform coefficient dataquantized when the images are encoded, by using a scaling list of thetransform unit selected by the selection unit 430. After that, thedequantization unit 440 outputs the dequantized transform coefficientdata to the inverse orthogonal transform unit 450.

(4) Inverse Orthogonal Transform Unit

The inverse orthogonal transform unit 450 performs an inverse orthogonaltransform on the transform coefficient data dequantized by thedequantization unit 440 in units of the selected transform unit inaccordance with the orthogonal transform scheme used for encoding togenerate prediction error data. After that, the inverse orthogonaltransform unit 450 outputs the generated prediction error data to theadder unit 315.

<2-10. Detailed Example Configuration of Matrix Generation Unit>

FIG. 24 is a block diagram illustrating an example of a detailedconfiguration of the matrix generation unit 410 illustrated in FIG. 23.Referring to FIG. 24, the matrix generation unit 410 includes aparameter analysis unit 531, a prediction unit 532, an entropy decodingunit 533, a scaling list restoration unit 534, an output unit 535, and astorage unit 536.

(1) Parameter Analysis Unit

The parameter analysis unit 531 analyzes the various flags andparameters concerning the scaling list, which are supplied from thelossless decoding unit 312. Furthermore, in accordance with the analysisresults, the parameter analysis unit 531 supplies various kinds ofinformation supplied from the lossless decoding unit 312, such asencoded data of the difference matrix, to the prediction unit 532 or theentropy decoding unit 533.

For example, if pred_mode is equal to 0, the parameter analysis unit 531determines that the current mode is the copy mode, and suppliespred_matrix_id_delta to a copy unit 541. Furthermore, for example, ifpred_mode is equal to 1, the parameter analysis unit 531 determines thatthe current mode is a full-scan mode (normal mode), and suppliespred_matrix_id_delta and pred_size_id_delta to a prediction matrixgeneration unit 542.

Furthermore, for example, if residual_flag is true, the parameteranalysis unit 531 supplies the encoded data (exponential Golomb codes)of the scaling list supplied from the lossless decoding unit 312 to anexp-G unit 551 of the entropy decoding unit 533. The parameter analysisunit 531 further supplies residual_symmetry_flag to the exp-G unit 551.

Furthermore, the parameter analysis unit 531 suppliesresidual_down_sampling_flag to a difference matrix size transformationunit 562 of the scaling list restoration unit 534.

(2) Prediction Unit

The prediction unit 532 generates a prediction matrix in accordance withthe control of the parameter analysis unit 531. As illustrated in FIG.24, the prediction unit 532 includes the copy unit 541 and theprediction matrix generation unit 542.

In the copy mode, the copy unit 541 copies a previously transmittedscaling list, and uses the copied scaling list as a prediction matrix.More specifically, the copy unit 541 reads a previously transmittedscaling list corresponding to pred_matrix_id_delta and having the samesize as the scaling list for the current region from the storage unit536, uses the read scaling list as a prediction image, and supplies theprediction image to the output unit 535.

In the normal mode, the prediction matrix generation unit 542 generates(or predicts) a prediction matrix using a previously transmitted scalinglist. More specifically, the prediction matrix generation unit 542 readsa previously transmitted scaling list corresponding topred_matrix_id_delta and pred_size_id_delta from the storage unit 536,and generates a prediction matrix using the read scaling list. In otherwords, the prediction matrix generation unit 542 generates a predictionmatrix similar to the prediction matrix generated by the predictionmatrix generation unit 172 (FIG. 16) of the image encoding device 10.The prediction matrix generation unit 542 supplies the generatedprediction matrix to a prediction matrix size transformation unit 561 ofthe scaling list restoration unit 534.

(3) Entropy Decoding Unit

The entropy decoding unit 533 restores a difference matrix from theexponential Golomb codes supplied from the parameter analysis unit 531.As illustrated in FIG. 24, the entropy decoding unit 533 includes theexp-G unit 551, an inverse DPCM unit 552, and an inverse overlapdetermination unit 553.

The exp-G unit 551 decodes the signed or unsigned exponential Golombcodes (hereinafter also referred to as exponential Golomb decoding) torestore DPCM data. The exp-G unit 551 supplies the restored DPCM datatogether with residual_symmetry_flag to the inverse DPCM unit 552.

The inverse DPCM unit 552 performs DPCM decoding of data from which theoverlapping portion has been removed to generate residual data from theDPCM data. The inverse DPCM unit 552 supplies the generated residualdata together with residual_symmetry_flag to the inverse overlapdetermination unit 553.

If residual_symmetry_flag is true, that is, if the residual data is aremaining portion of a 135-degree symmetric matrix from which the data(matrix elements) of the overlapping symmetric part has been removed,the inverse overlap determination unit 553 restores the data of thesymmetric part. In other words, a difference matrix of a 135-degreesymmetric matrix is restored. Note that if residual_symmetry_flag is nottrue, that is, if the residual data represents a matrix that is not a135-degree symmetric matrix, the inverse overlap determination unit 553uses the residual data as a difference matrix without restoring data ofa symmetric part. The inverse overlap determination unit 553 suppliesthe difference matrix restored in the way described above to the scalinglist restoration unit 534 (the difference matrix size transformationunit 562).

(4) Scaling List Restoration Unit

The scaling list restoration unit 534 restores a scaling list. Asillustrated in FIG. 24, the scaling list restoration unit 534 includesthe prediction matrix size transformation unit 561, the differencematrix size transformation unit 562, a dequantization unit 563, and acomputation unit 564.

If the size of the prediction matrix supplied from the prediction unit532 (the prediction matrix generation unit 542) is different from thesize of the scaling list for the current region to be restored, theprediction matrix size transformation unit 561 converts the size of theprediction matrix.

For example, if the size of the prediction matrix is larger than thesize of the scaling list, the prediction matrix size transformation unit561 down-converts the prediction matrix. Furthermore, for example, ifthe size of the prediction matrix is smaller than the size of thescaling list, the prediction matrix size transformation unit 561up-converts the prediction matrix. The same method as that for theprediction matrix size transformation unit 181 (FIG. 16) of the imageencoding device 10 is selected as a conversion method.

The prediction matrix size transformation unit 561 supplies theprediction matrix whose size has been made to match that of the scalinglist to the computation unit 564.

If residual_down_sampling_flag is true, that is, if the size of thetransmitted difference matrix is smaller than the size of the currentregion to be dequantized, the difference matrix size transformation unit562 up-converts the difference matrix to increase the size of thedifference matrix to a size corresponding to the current region to bedequantized. Any method for up-conversion may be used. For example, amethod corresponding to the down-conversion method performed by thedifference matrix size transformation unit 163 (FIG. 16) of the imageencoding device 10 may be used.

For example, if the difference matrix size transformation unit 163 hasdownsampled the difference matrix, the difference matrix sizetransformation unit 562 may upsample the difference matrix.Alternatively, if the difference matrix size transformation unit 163 hassub-sampled the difference matrix, the difference matrix sizetransformation unit 562 may perform inverse subsampling of thedifference matrix.

For example, the difference matrix size transformation unit 562 mayperform a nearest neighbor interpolation process (nearest neighbor) asillustrated in FIG. 25 rather than general linear interpolation. Thenearest neighbor interpolation process can reduce memory capacity.

Accordingly, even if a scaling list having a large size is nottransmitted, data obtained after upsampling need not be stored forupsampling from a scaling list having a small size. In addition, anintermediate buffer or the like is not necessary when data involved incomputation during upsampling is stored.

Note that if residual_down_sampling_flag is not true, that is, if thedifference matrix is transmitted with the same size as that when usedfor the quantization process, the difference matrix size transformationunit 562 omits the up-conversion of the difference matrix (or mayup-convert the difference matrix by a factor of 1).

The difference matrix size transformation unit 562 supplies thedifference matrix up-converted in the manner described above, asnecessary, to the dequantization unit 563.

The dequantization unit 563 dequantizes the supplied difference matrix(quantized data) using a method corresponding to that for quantizationperformed by the quantization unit 183 (FIG. 16) of the image encodingdevice 10, and supplies the dequantized difference matrix to thecomputation unit 564. Note that if the quantization unit 183 is omitted,that is, if the difference matrix supplied from the difference matrixsize transformation unit 562 is not quantized data, the dequantizationunit 563 can be omitted.

The computation unit 564 adds together the prediction matrix suppliedfrom the prediction matrix size transformation unit 561 and thedifference matrix supplied from the dequantization unit 563, andrestores a scaling list for the current region. The computation unit 564supplies the restored scaling list to the output unit 535 and thestorage unit 536.

(5) Output Unit

The output unit 535 outputs the supplied information to a device outsidethe matrix generation unit 410. For example, in the copy mode, theoutput unit 535 supplies the prediction matrix supplied from the copyunit 541 to the dequantization unit 440 as a scaling list for thecurrent region. Furthermore, for example, in the normal mode, the outputunit 535 supplies the scaling list for the current region supplied fromthe scaling list restoration unit 534 (the computation unit 564) to thedequantization unit 440.

(6) Storage Unit

The storage unit 536 stores the scaling list supplied from the scalinglist restoration unit 534 (the computation unit 564) together with thesize and the list ID of the scaling list. The information concerning thescaling list stored in the storage unit 536 is used to generateprediction matrices of other orthogonal transform units which areprocessed later in time. In other words, the storage unit 536 suppliesthe stored information concerning the scaling list to the predictionunit 532 as information concerning a previously transmitted scalinglist.

<2-11. Detailed Example Configuration of Inverse DPCM Unit>

FIG. 26 is a block diagram illustrating an example of a detailedconfiguration of the inverse DPCM unit 552 illustrated in FIG. 24.Referring to FIG. 26, the inverse DPCM unit 552 includes an initialsetting unit 571, a DPCM decoding unit 572, and a DC coefficientextraction unit 573.

The initial setting unit 571 acquires sizeID and MatrixID, and setsvarious variables to initial values. The initial setting unit 571supplies the acquired and set information to the DPCM decoding unit 572.

The DPCM decoding unit 572 determines individual coefficients (the DCcoefficient and the AC coefficients) from the difference values(scaling_list_delta_coef) of the DC coefficient and the AC coefficientsusing the initial settings and the like supplied from the initialsetting unit 571. The DPCM decoding unit 572 supplies the determinedcoefficients to the DC coefficient extraction unit 573 (ScalingList[i]).

The DC coefficient extraction unit 573 extracts the DC coefficient fromamong the coefficients (ScalingList[i]) supplied from the DPCM decodingunit 572. The DC coefficient is located at the beginning of the ACcoefficients. That is, the initial coefficient (ScalingList[0]) amongthe coefficients supplied from the DPCM decoding unit 572 is the DCcoefficient. The DC coefficient extraction unit 573 extracts thecoefficient located at the beginning as the DC coefficient, and outputsthe extracted coefficient to the inverse overlap determination unit 553(DC_coef). The DC coefficient extraction unit 573 outputs the othercoefficients (ScalingList[i] (i>0)) to the inverse overlap determinationunit 553 as the AC coefficients.

Accordingly, the inverse DPCM unit 552 can perform correct DPCMdecoding, and can obtain the DC coefficient and the AC coefficients.That is, the image decoding device 300 can suppress an increase in theamount of coding of a scaling list.

<2-12. Flow of Quantization Matrix Decoding Process>

An example of the flow of a quantization matrix decoding processexecuted by the matrix generation unit 410 having the configurationdescribed above will be described with reference to a flowchartillustrated in FIG. 27.

When the quantization matrix decoding process is started, in step S301,the parameter analysis unit 531 reads the quantized values (Qscale0 toQscale3) of regions 0 to 3.

In step S302, the parameter analysis unit 531 reads pred_mode. In stepS303, the parameter analysis unit 531 determines whether or notpred_mode is equal to 0. If it is determined that pred_mode is equal to0, the parameter analysis unit 531 determines that the current mode isthe copy mode, and advances the process to step S304.

In step S304, the parameter analysis unit 531 readspred_matrix_id_delta. In step S305, the copy unit 541 copies a scalinglist that has been transmitted, and uses the copied scaling list as aprediction matrix. In the copy mode, the prediction matrix is output asthe scaling list for the current region. When the processing of stepS305 is completed, the copy unit 541 ends the quantization matrixdecoding process.

Furthermore, if it is determined in step S303 that pred_mode is notequal to 0, the parameter analysis unit 531 determines that the currentmode is the full-scan mode (normal mode), and advances the process tostep S306.

In step S306, the parameter analysis unit 531 readspred_matrix_id_delta, pred_size_id_delta, and residual_flag. In stepS307, the prediction matrix generation unit 542 generates a predictionmatrix from a scaling list that has been transmitted.

In step S308, the parameter analysis unit 531 determines whether or notresidual_flag is true. If it is determined that residual_flag is nottrue, no residual matrices exist, and the prediction matrix generated instep S307 is output as the scaling list for the current region. In thiscase, therefore, the parameter analysis unit 531 ends the quantizationmatrix decoding process.

Furthermore, if it is determined in step S308 that residual_flag istrue, the parameter analysis unit 531 advances the process to step S309.

In step S309, the parameter analysis unit 531 readsresidual_down_sampling_flag and residual_symmetry_flag.

In step S310, the exp-G unit 551 and the inverse DPCM unit 552 decodethe exponential Golomb codes of the residual matrix, and generateresidual data.

In step S311, the inverse overlap determination unit 553 determineswhether or not residual_symmetry_flag is true. If it is determined thatresidual_symmetry_flag is true, the inverse overlap determination unit553 advances the process to step S312, and restores the removedoverlapping portion of the residual data (or performs an inversesymmetry process). When a difference matrix that is a 135-degreesymmetric matrix is generated in the way described above, the inverseoverlap determination unit 553 advances the process to step S313.

Furthermore, if it is determined in step S311 thatresidual_symmetry_flag is not true (or if the residual data is adifference matrix that is not a 135-degree symmetric matrix), theinverse overlap determination unit 553 advances the process to step S313while skipping the processing of step S312 (or without performing aninverse symmetry process).

In step S313, the difference matrix size transformation unit 562determines whether or not residual_down_sampling_flag is true. If it isdetermined that residual_down_sampling_flag is true, the differencematrix size transformation unit 562 advances the process to step S314,and up-converts the difference matrix to a size corresponding to thecurrent region to be dequantized. After the difference matrix isup-converted, the difference matrix size transformation unit 562advances the process to step S315.

Furthermore, if it is determined in step S313 thatresidual_down_sampling_flag is not true, the difference matrix sizetransformation unit 562 advances the process to step S315 while skippingthe processing of step S314 (or without up-converting the differencematrix).

In step S315, the computation unit 564 adds the difference matrix to theprediction matrix to generate a scaling list for the current region.When the processing of step S315 is completed, the quantization matrixdecoding process ends.

<2-13. Flow of Residual Signal Decoding Process>

Next, an example of the flow of the residual signal decoding processexecuted in step S310 in FIG. 27 will be described with reference to aflowchart illustrated in FIG. 28.

When the residual signal decoding process is started, in step S331, theexp-G unit 551 decodes the supplied exponential Golomb codes.

In step S332, the inverse DPCM unit 552 performs an inverse DPCM processon DPCM data obtained by the exp-G unit 551 through decoding.

When the inverse DPCM process is completed, the inverse DPCM unit 552ends the residual signal decoding process, and returns the process toFIG. 27.

<2-14. Flow of Inverse DPCM Process>

Next, an example of the flow of the inverse DPCM process executed instep S332 in FIG. 28 will be described with reference to a flowchartillustrated in FIG. 29.

When the inverse DPCM process is started, in step S351, the initialsetting unit 571 acquires sizeID and MatrixID.

In step S352, the initial setting unit 571 sets coefNum as follows.coefNum=min((1<<(4+(sizeID<<1))), 65)

In step S353, the initial setting unit 571 sets a variable i and avariable nextcoef as follows.i=0nextcoef=8

In step S354, the DPCM decoding unit 572 determines whether or notvariable i<coefNum. If the variable i is smaller than coefNum, theinitial setting unit 571 advances the process to step S355.

In step S355, the DPCM decoding unit 572 reads DPCM data of thecoefficient (scaling_list_delta_coef).

In step S356, the DPCM decoding unit 572 determines nextcoef as belowusing the read DPCM data, and further determines scalingList[i].nextcoef=(nextcoef+scaling_list_delta_coef+256)% 256scalingList[i]=nextcoef

In step S357, the DC coefficient extraction unit 573 determines whetheror not sizeID is larger than 1 and whether or not the variable i isequal to 0 (that is, the coefficient located at the beginning). If it isdetermined that sizeID is larger than 1 and the variable i representsthe coefficient located at the beginning, the DC coefficient extractionunit 573 advances the process to step S358, and uses the coefficient asthe DC coefficient (DC_coef=nextcoef). When the processing of step S358is completed, the DC coefficient extraction unit 573 advances theprocess to step S360.

Furthermore, if it is determined in step S357 that sizeID is less thanor equal to 1 or that the variable i does not represent the coefficientlocated at the beginning, the DC coefficient extraction unit 573advances the process to step S359, and shifts the variable i for eachcoefficient by one because the DC coefficient has been extracted.(ScalingList[(i−(sizeID)>1)?1;0]=nextcoef) If the processing of stepS359 is completed, the DC coefficient extraction unit 573 advances theprocess to step S360.

In step S360, the DPCM decoding unit 572 increments the variable i tochange the processing target to the subsequent coefficient, and thenreturns the process to step S354.

In step S354, the processing of steps S354 to S360 is repeatedlyperformed until it is determined that the variable i is greater than orequal to coefNum. If it is determined in step S354 that the variable iis greater than or equal to coefNum, the DPCM decoding unit 572 ends theinverse DPCM process, and returns the process to FIG. 28.

Accordingly, the difference between the DC coefficient and the ACcoefficient located at the beginning of the AC coefficients may becorrectly decoded. Therefore, the image decoding device 300 can suppressan increase in the amount of coding of a scaling list.

<3. Third Embodiment>

<3-1. Syntax: Second Method>

Another method for transmitting a difference between the DC coefficientand another coefficient, instead of the DC coefficient, may be to, forexample, transmit a difference between the DC coefficient and the (0, 0)component of an 8×8 matrix as DPCM data different from the DPCM data ofthe 8×8 matrix (second method). For example, after DPCM transmission ofan 8×8 matrix, the difference between the DC coefficient and the (0, 0)component of the 8×8 matrix may be transmitted.

Accordingly, similarly to the first method, the compression ratio can bemore improved when the value of the (0, 0) coefficient (AC coefficient)of an 8×8 matrix and the value of the DC coefficient are close to eachother.

FIG. 30 illustrates the syntax of a scaling list in the second method.In the example illustrated in FIG. 30, 64 difference values(scaling_list_delta_coef) between coefficients are read. Finally, thedifference (scaling_list_dc_coef_delta) between the DC coefficient andthe (0, 0) coefficient (AC coefficient) is read, and the DC coefficientis determined from the difference.

In the second method, accordingly, syntax for decoding AC coefficientscan be similar to that of the related art illustrated in FIG. 12. Thatis, the syntax for the second method can be obtained by modifying theexample of the related art by a small amount, and can be more feasiblethan that for the first method.

However, whereas the second method does not allow an image decodingdevice to obtain the DC coefficient until the image decoding device havereceived all the coefficients and have decompressed all the DPCM data,the first method allows an image decoding device to restore the DCcoefficient at the time when the image decoding device receives theinitial coefficient.

An image encoding device that implements the syntax for the secondmethod described above will be described hereinafter.

<3-2. Detailed Example Configuration of DPCM Unit>

In the second method, the image encoding device 10 has a configurationbasically similar to that in the first method described above.Specifically, the image encoding device 10 has a configuration as in theexample illustrated in FIG. 14. Further, the orthogonaltransform/quantization unit 14 has a configuration as in the exampleillustrated in FIG. 15. Further, the matrix processing unit 150 has aconfiguration as in the example illustrated in FIG. 16.

An example configuration of the DPCM unit 192 in the second example isillustrated in FIG. 31. As illustrated in FIG. 31, in the secondexample, the DPCM unit 192 includes an AC coefficient buffer 611, an ACcoefficient encoding unit 612, an AC coefficient DPCM unit 613, and a DCcoefficient DPCM unit 614.

The AC coefficient buffer 611 stores the initial AC coefficient (thatis, the (0, 0) coefficient) supplied from the overlap determination unit191. The AC coefficient buffer 611 supplies the stored initial ACcoefficient (AC coefficient (0, 0)) to the DC coefficient DPCM unit 614at a predetermined timing after all the AC coefficients have beensubjected to a DPCM process, or in response to a request.

The AC coefficient encoding unit 612 acquires the initial AC coefficient(AC coefficient (0, 0)) supplied from the overlap determination unit191, and subtracts the value of the initial AC coefficient from aconstant (for example, 8). The AC coefficient encoding unit 612 suppliesa subtraction result (difference) to the exp-G unit 193 as the initialcoefficient (scaling_list_delta_coef (i=0)) of the DPCM data of the ACcoefficients.

The AC coefficient DPCM unit 613 acquires the AC coefficients suppliedfrom the overlap determination unit 191, determines, for each of thesecond and subsequent AC coefficients, the difference (DPCM) from theimmediately preceding AC coefficient, and supplies the determineddifferences to the exp-G unit 193 as DPCM data (scaling_list_delta_coef(i=1 to 63)).

The DC coefficient DPCM unit 614 acquires the DC coefficient suppliedfrom the overlap determination unit 191. The DC coefficient DPCM unit614 further acquires the initial AC coefficient (AC coefficient (0, 0))held in the AC coefficient buffer 611. The DC coefficient DPCM unit 614subtracts the initial AC coefficient (AC coefficient (0, 0)) from the DCcoefficient to determine the difference therebetween, and supplies thedetermined difference to the exp-G unit 193 as DPCM data of the DCcoefficient (scaling_list_dc_coef_delta).

As described above, in the second method, a difference between the DCcoefficient and another coefficient (the initial AC coefficient) isdetermined. Then, the difference is transmitted, as DPCM data of the DCcoefficient (scaling_list_dc_coef_delta) different from DPCM data of theAC coefficients, after the transmission of DPCM data of the ACcoefficients (scaling_list_delta_coef) that is a difference between theAC coefficients. Accordingly, similarly to the first method, the imageencoding device 10 can improve the coding efficiency of a scaling list.

<3-3. Flow of DPCM Process>

Also in the second method, the image encoding device 10 executes aquantization matrix encoding process in a manner similar to that in thefirst method described with reference to the flowchart illustrated inFIG. 20.

An example of the flow of a DPCM process in the second method, which isexecuted in step S112 in FIG. 20, will be described with reference to aflowchart illustrated in FIG. 32.

When the DPCM process is started, in step S401, the AC coefficientbuffer 611 holds the initial AC coefficient.

In step S402, the AC coefficient encoding unit 612 subtracts the initialAC coefficient from a predetermined constant (for example, 8) todetermine the difference therebetween (initial DPCM data).

The processing of steps S403 to S405 is executed by the AC coefficientDPCM unit 613 in a manner similar to the processing of steps S133 toS135 in FIG. 21. That is, the processing of steps S403 to S405 isrepeatedly executed to generate DPCM data of all the AC coefficients(the differences from the immediately preceding AC coefficients).

If it is determined in step S403 that all the AC coefficients have beenprocessed (that is, if there is no unprocessed AC coefficient), the ACcoefficient DPCM unit 613 advances the process to step S406.

In step S406, the DC coefficient DPCM unit 614 subtracts the initial ACcoefficient held in step S401 from the DC coefficient to determine adifference therebetween (DPCM data for the DC coefficient).

When the processing of step S406 is completed, the DC coefficient DPCMunit 614 ends the DPCM process, and returns the process to FIG. 20.

Accordingly, a difference between the DC coefficient and anothercoefficient is also determined and transmitted to an image decodingdevice as DPCM data. Thus, the image encoding device 10 can suppress anincrease in the amount of coding of a scaling list.

<3-4. Detailed Example Configuration of Inverse DPCM Unit>

In the second method, the image decoding device 300 has a configurationbasically similar to that in the first method. Specifically, also in thesecond method, the image decoding device 300 has a configuration as inthe example illustrated in FIG. 22. Furthermore, thedequantization/inverse orthogonal transform unit 313 has a configurationas in the example illustrated in FIG. 23. Moreover, the matrixgeneration unit 410 has a configuration as in the example illustrated inFIG. 24.

FIG. 33 is a block diagram illustrating an example of a detailedconfiguration of the inverse DPCM unit 552 illustrated in FIG. 24 in thesecond method. Referring to FIG. 33, the inverse DPCM unit 552 includesan initial setting unit 621, an AC coefficient DPCM decoding unit 622,an AC coefficient buffer 623, and a DC coefficient DPCM decoding unit624.

The initial setting unit 621 acquires sizeID and MatrixID, and setsvarious variables to initial values. The initial setting unit 621supplies the acquired and set information to the AC coefficient DPCMdecoding unit 622.

The AC coefficient DPCM decoding unit 622 acquires the DPCM data of theAC coefficients (scaling_list_delta_coef) supplied from the exp-G unit551. The AC coefficient DPCM decoding unit 622 decodes the acquired DPCMdata of the AC coefficients using the initial settings and the likesupplied from the initial setting unit 621 to determine AC coefficients.The AC coefficient DPCM decoding unit 622 supplies the determined ACcoefficients (ScalingList[i]) to the inverse overlap determination unit553. The AC coefficient DPCM decoding unit 622 further supplies theinitial AC coefficient (ScalingList[0], that is, the AC coefficient (0,0)) among the determined AC coefficients to the AC coefficient buffer623 for holding.

The AC coefficient buffer 623 stores the initial AC coefficient(ScalingList[0], that is, the AC coefficient (0, 0)) supplied from theAC coefficient DPCM decoding unit 622. The AC coefficient buffer 623supplies the initial AC coefficient (ScalingList[0], that is, the ACcoefficient (0, 0)) to the DC coefficient DPCM decoding unit 624 at apredetermined timing or in response to a request.

The DC coefficient DPCM decoding unit 624 acquires the DPCM data of theDC coefficient (scaling_list_dc_coef_delta) supplied from the exp-G unit551. The DC coefficient DPCM decoding unit 624 further acquires theinitial AC coefficient (ScalingList[0], that is, the AC coefficient (0,0)) stored in the AC coefficient buffer 623. The DC coefficient DPCMdecoding unit 624 decodes the DPCM data of the DC coefficient using theinitial AC coefficient to determine the DC coefficient. The DCcoefficient DPCM decoding unit 624 supplies the determined DCcoefficient (DC_coef) to the inverse overlap determination unit 553.

Accordingly, the inverse DPCM unit 552 can perform correct DPCMdecoding, and can obtain the DC coefficient and the AC coefficients.That is, the image decoding device 300 can suppress an increase in theamount of coding of a scaling list.

<3-5. Flow of Inverse DPCM Process>

Also in the second method, the image decoding device 300 executes aquantization matrix decoding process in a manner similar to that in thefirst method described above with reference to the flowchart illustratedin FIG. 27. Similarly, the image decoding device 300 executes a residualsignal decoding process in a manner similar to that in the first methoddescribed above with reference to the flowchart illustrated in FIG. 28.

An example of the flow of the inverse DPCM process executed by theinverse DPCM unit 552 will be described with reference to a flowchartillustrated in FIG. 34.

When the inverse DPCM process is started, in step S421, the initialsetting unit 621 acquires sizeID and MatrixID.

In step S422, the initial setting unit 621 sets coefNum as follows.coefNum=min((1<<(4+(sizeID<<1))), 64)

In step S423, the initial setting unit 621 sets a variable i and avariable nextcoef as follows.i=0nextcoef=8

In step S424, the DPCM decoding unit 572 determines whether or notvariable i<coefNum. If the variable i is smaller than coefNum, theinitial setting unit 621 advances the process to step S425.

In step S425, the AC coefficient DPCM decoding unit 622 reads DPCM dataof the AC coefficients (scaling_list_delta_coef).

In step S426, the AC coefficient DPCM decoding unit 622 determinesnextcoef as below using the read DPCM data, and further determinesscalingList[i].nextcoef=(nextcoef+scaling_list_delta_coef+256)% 256scalingList[i]=nextcoef

Note that the calculated initial AC coefficient (ScalingList[0], thatis, the AC coefficient (0, 0)) is held in the AC coefficient buffer 623.

In step S427, the AC coefficient DPCM decoding unit 622 increments thevariable i to change the target to be processed to the subsequentcoefficient, and then returns the process to step S424.

In step S424, the processing of steps S424 to S427 is repeatedlyperformed until it is determined that the variable i is greater than orequal to coefNum. If it is determined in step S424 that the variable iis greater than or equal to coefNum, the AC coefficient DPCM decodingunit 622 advances the process to step S428.

In step S428, the DC coefficient DPCM decoding unit 624 determineswhether or not sizeID is greater than 1. If it is determined that sizeIDis greater than 1, the DC coefficient DPCM decoding unit 624 advancesthe process to step S429, and reads the DPCM data of the DC coefficient(scaling_list_dc_coef_delta).

In step S430, the DC coefficient DPCM decoding unit 624 acquires theinitial AC coefficient (ScalingList[0], that is, the AC coefficient (0,0)) held in the AC coefficient buffer 623, and decodes the DPCM data ofthe DC coefficient (DC_coef) using the initial AC coefficient asfollows.DC_coef=scaling_list_dc_coef_delta+ScalingList[0]

When the DC coefficient (DC_coef) is obtained, the DC coefficient DPCMdecoding unit 624 ends the inverse DPCM process, and returns the processto FIG. 28.

Furthermore, if it is determined in step S428 that sizeID is less thanor equal to 1, the DC coefficient DPCM decoding unit 624 ends theinverse DPCM process, and returns the process to FIG. 28.

Accordingly, the difference between the DC coefficient and the ACcoefficient located at the beginning of the AC coefficients can becorrectly decoded. Therefore, the image decoding device 300 can suppressan increase in the amount of coding of a scaling list.

<4. Fourth Embodiment>

<4-1. Syntax: Third Method>

In the second method described above, the DC coefficient may also belimited to a value smaller than the initial AC coefficient (ACcoefficient (0, 0)) (third method).

This ensures that the DPCM data of the DC coefficient, that is, adifference value obtained by subtracting the initial AC coefficient fromthe DC coefficient, can be a positive value. This DPCM data can thus beencoded using unsigned exponential Golomb codes. Therefore, the thirdmethod may prevent the DC coefficient from being larger than the initialAC coefficient, but can reduce the amount of coding compared to thefirst method and the second method.

FIG. 35 illustrates the syntax of a scaling list in the third method. Asillustrated in FIG. 35, in this case, the DPCM data of the DCcoefficient (scaling_list_dc_coef_delta) is limited to a positive value.

The syntax for the third method described above can be implemented by animage encoding device 10 similar to that in the second method. In thethird method, however, the exp-G unit 193 can encode the DPCM data ofthe DC coefficient using unsigned exponential Golomb codes. Note thatthe image encoding device 10 can execute processes such as aquantization matrix encoding process and a DPCM process in a mannersimilar to that in the second method.

Furthermore, the syntax for the third method can be implemented by theimage decoding device 300 in a manner similar to that in the secondmethod. Moreover, the image decoding device 300 can execute aquantization matrix decoding process in a manner similar to that in thesecond method.

<4-2. Flow of Inverse DPCM Process>

An example of the flow of an inverse DPCM process executed by theinverse DPCM unit 552 will be described with reference to a flowchartillustrated in FIG. 36.

The processing of steps S451 to S459 is performed in a manner similar tothe processing of steps S421 to S429 in FIG. 34.

In step S460, the DC coefficient DPCM decoding unit 624 acquires theinitial AC coefficient (ScalingList[0], that is, the AC coefficient (0,0)) held in the AC coefficient buffer 623, and decodes the DPCM data ofthe DC coefficient (DC_coef) as below using the initial AC coefficient.DC_coef=ScalingList[0]−scaling_list_dc_coef_delta

When the DC coefficient (DC_coef) is obtained, the DC coefficient DPCMdecoding unit 624 ends the inverse DPCM process, and returns the processto FIG. 28.

Furthermore, if it is determined in step S458 that sizeID is less thanor equal to 1, the DC coefficient DPCM decoding unit 624 ends theinverse DPCM process, and returns the process to FIG. 28.

Accordingly, the difference between the DC coefficient and the ACcoefficient located at the beginning of the AC coefficients can becorrectly decoded. Therefore, the image decoding device 300 can suppressan increase in the amount of coding of a scaling list.

<5. Fifth Embodiment>

<5-1. Syntax: Fourth Method>

Another method for transmitting a difference between the DC coefficientand another coefficient, instead of the DC coefficient, may be to, forexample, collect only the DC coefficients of a plurality of scalinglists and to perform DPCM by taking differences between the DCcoefficients separately from the AC coefficients of the individualscaling lists (fourth method). In this case, DPCM data of the DCcoefficients is a collection of pieces of data for the plurality ofscaling lists, and is transmitted as data different from DPCM data ofthe AC coefficients of the individual scaling lists.

Accordingly, the compression ratio can be more improved when, forexample, there are correlations between the DC coefficients of thescaling lists (MatrixID).

FIG. 37 illustrates the syntax for the DC coefficient of a scaling listin the fourth method. In this case, since the DC coefficients areprocessed in cycles different from those for the AC coefficients of theindividual scaling lists, as illustrated in the example illustrated inFIG. 37, processes for the AC coefficients and processes for the DCcoefficients need to be independent from each other.

This ensures that more various methods for scaling list encoding anddecoding processes can be achieved although the complexity of the DPCMprocess and the inverse DPCM process may be increased. For example, aprocess for copying only the AC coefficients and making the values ofthe DC coefficients different in the copy mode can be easilyimplemented.

The number of scaling lists in which the DC coefficients arecollectively processed is arbitrary.

<5-2. Detailed Example Configuration of DPCM Unit>

In the fourth method, the image encoding device 10 has a configurationbasically similar to that in the first method described above.Specifically, the image encoding device 10 has a configuration as in theexample illustrated in FIG. 14. Furthermore, the orthogonaltransform/quantization unit 14 has a configuration as in the exampleillustrated in FIG. 15. Moreover, the matrix processing unit 150 has aconfiguration as in the example illustrated in FIG. 16.

An example configuration of the DPCM unit 192 in the fourth method isillustrated in FIG. 38. As illustrated in FIG. 38, in this case, theDPCM unit 192 includes an AC coefficient DPCM unit 631, a DC coefficientbuffer 632, and a DC coefficient DPCM unit 633.

The AC coefficient DPCM unit 631 performs a DPCM process of theindividual AC coefficients of each scaling list which are supplied fromthe overlap determination unit 191. Specifically, the AC coefficientDPCM unit 631 subtracts, for each scaling list, the initial ACcoefficient from a predetermined constant (for example, 8), andsubtracts the AC coefficient being processed (current AC coefficient)from the immediately preceding AC coefficient. The AC coefficient DPCMunit 631 supplies DPCM data (scaling_list_delta_coef) generated for eachscaling list to the exp-G unit 193.

The DC coefficient buffer 632 stores the DC coefficients of theindividual scaling lists supplied from the overlap determination unit191. The DC coefficient buffer 632 supplies the stored DC coefficientsto the DC coefficient DPCM unit 633 at a predetermined timing or inresponse to a request.

The DC coefficient DPCM unit 633 acquires the DC coefficientsaccumulated in the DC coefficient buffer 632. The DC coefficient DPCMunit 633 determines DPCM data of the acquired DC coefficients.Specifically, the DC coefficient DPCM unit 633 subtracts the initial DCcoefficient from a predetermined constant (for example, 8), andsubtracts the DC coefficient being processed (current DC coefficient)from the immediately preceding DC coefficient. The DC coefficient DPCMunit 633 supplies the generated DPCM data (scaling_list_delta_coef) tothe exp-G unit 193.

Accordingly, the image encoding device 10 can improve the codingefficiency of a scaling list.

<5-3. Flow of DPCM Process>

Also in the fourth method, the image encoding device 10 executes aquantization matrix encoding process in a manner similar to that in thefirst method described above with reference to the flowchart illustratedin FIG. 20.

An example of the flow of a DPCM process in the fourth method, which isexecuted in step S112 in FIG. 20, will be described with reference to aflowchart illustrated in FIG. 39.

The processing of steps S481 to S485 is executed by the AC coefficientDPCM unit 631 in a manner similar to the processing of steps S401 toS405 (the processing in the second method) in FIG. 32.

If it is determined in step S483 that all the AC coefficients have beenprocessed, the AC coefficient DPCM unit 631 advances the process to stepS486.

In step S486, the AC coefficient DPCM unit 631 determines whether or notall the scaling lists (or difference matrices) in which the DCcoefficients are collectively DPCM encoded have been processed. If it isdetermined that there is an unprocessed scaling list (or differencematrix), the AC coefficient DPCM unit 631 returns the process to stepS481.

If it is determined in step S486 that all the scaling lists (ordifference matrices) have been processed, the AC coefficient DPCM unit631 advances the process to step S487.

The DC coefficient DPCM unit 633 executes the processing of steps S487to S491 on the DC coefficients stored in the DC coefficient buffer 632in a manner similar to the processing of steps S481 to S485.

If it is determined in step S489 that all the DC coefficients stored inthe DC coefficient buffer 632 have been processed, the DC coefficientDPCM unit 633 ends the DPCM process, and returns the process to FIG. 20.

By executing a DPCM process in the manner described above, the imageencoding device 10 can improve the coding efficiency of a scaling list.

<5-4. Detailed Example Configuration of Inverse DPCM Unit>

The image decoding device 300 in the fourth method has a configurationbasically similar to that in the first method. Specifically, also in thefourth method, the image decoding device 300 has a configuration as inthe example illustrated in FIG. 22. Further, the dequantization/inverseorthogonal transform unit 313 has a configuration as in the exampleillustrated in FIG. 23. Moreover, the matrix generation unit 410 has aconfiguration as in the example illustrated in FIG. 24.

FIG. 40 is a block diagram illustrating an example of a detailedconfiguration of the inverse DPCM unit 552 illustrated in FIG. 24 in thefourth method. Referring to FIG. 40, the inverse DPCM unit 552 includesan initial setting unit 641, an AC coefficient DPCM decoding unit 642,and a DC coefficient DPCM decoding unit 643.

The initial setting unit 641 acquires sizeID and MatrixID, and setsvarious variables to initial values. The initial setting unit 641supplies the acquired and set information to the AC coefficient DPCMdecoding unit 642 and the DC coefficient DPCM decoding unit 643.

The AC coefficient DPCM decoding unit 642 acquires the DPCM data of theAC coefficients (scaling_list_delta_coef(ac)) supplied from the exp-Gunit 551. The AC coefficient DPCM decoding unit 642 decodes the acquiredDPCM data of the AC coefficients using the initial settings and the likesupplied from the initial setting unit 641, and determines ACcoefficients. The AC coefficient DPCM decoding unit 642 supplies thedetermined AC coefficients (ScalingList[i]) to the inverse overlapdetermination unit 553. The AC coefficient DPCM decoding unit 642executes the process described above on a plurality of scaling lists.

The DC coefficient DPCM decoding unit 643 acquires the DPCM data of theDC coefficient (scaling_list_delta_coef(dc)) supplied from the exp-Gunit 551. The DC coefficient DPCM decoding unit 643 decodes the acquiredDPCM data of the DC coefficient using the initial settings and the likesupplied from the initial setting unit 641, and determines DCcoefficients of the individual scaling lists. The DC coefficient DPCMdecoding unit 643 supplies the determined DC coefficients(scaling_list_dc_coef) to the inverse overlap determination unit 553.

Accordingly, the inverse DPCM unit 552 can perform correct DPCMdecoding, and can obtain the DC coefficients and the AC coefficients.That is, the image decoding device 300 can suppress an increase in theamount of coding of scaling lists.

<5-5. Flow of Inverse DPCM Process>

Also in the fourth method, the image decoding device 300 executes aquantization matrix decoding process in a manner similar to that in thefirst method described above with reference to the flowchart illustratedin FIG. 27. Similarly, the image decoding device 300 executes a residualsignal decoding process in a manner similar to that in the first methoddescribed above with reference to the flowchart illustrated in FIG. 28.

An example of the flow of an inverse DPCM process executed by theinverse DPCM unit 552 will be described with reference to a flowchartillustrated in FIGS. 41 and 42.

When the inverse DPCM process is started, the initial setting unit 641and the AC coefficient DPCM decoding unit 642 execute the processing ofsteps S511 to S517 in a manner similar to that in the processing ofsteps S421 to S427 in FIG. 34.

If it is determined in step S514 that the variable i is greater than orequal to coefNum, the AC coefficient DPCM decoding unit 642 advances theprocess to step S518.

In step S518, the AC coefficient DPCM decoding unit 642 determineswhether or not all the scaling lists (difference matrices) in which theDC coefficients are collectively subjected to a DPCM process have beenprocessed. If it is determined that there is an unprocessed scaling list(difference matrix), the AC coefficient DPCM decoding unit 642 returnsthe process to step S511, and repeatedly performs the subsequentprocessing.

Furthermore, if it is determined that there is no unprocessed scalinglist (difference matrix), the AC coefficient DPCM decoding unit 642advances the process to FIG. 42.

In step S521 in FIG. 42, the initial setting unit 641 sets sizeID and avariable nextcoef as follows.sizeID=2nextcoef=8

Furthermore, in step S522, the initial setting unit 641 sets MatrixID asfollows.MatrixID=0

In step S523, the DC coefficient DPCM decoding unit 643 determineswhether or not sizeID<4. If it is determined that sizeID is smaller than4, the DC coefficient DPCM decoding unit 643 advances the process tostep S524.

In step S524, the DC coefficient DPCM decoding unit 643 determineswhether or not MatrixID<(sizeID==3)?2:6 is satisfied. If it isdetermined that MatrixID<(sizeID==3)?2:6 is satisfied, the DCcoefficient DPCM decoding unit 643 advances the process to step S525.

In step S525, the DC coefficient DPCM decoding unit 643 reads the DPCMdata of the DC coefficient (scaling_list_delta_coef).

In step S526, the DC coefficient DPCM decoding unit 643 determinesnextcoef as below using the read DPCM data, and further determinesscaling_dc_coef.nextcoef=(nextcoef+scaling_list_delta_coef+256)% 256scaling_dc_coef[sizeID−2] [MatrixID]=nextcoef

In step S527, the DC coefficient DPCM decoding unit 643 incrementsMatrixID to change the processing target to the subsequent DCcoefficient (the subsequent scaling list or residual matrix), and thenreturns the process to step S524.

If it is determined in step S524 that MatrixID<(sizeID==3)?2:6 is notsatisfied, the DC coefficient DPCM decoding unit 643 advances theprocess to step S528.

In step S528, the DC coefficient DPCM decoding unit 643 incrementssizeID to change the processing target to the subsequent DC coefficient(the subsequent scaling list or residual matrix), and then returns theprocess to step S523.

If it is determined in step S523 that sizeID is greater than or equal to4, the DC coefficient DPCM decoding unit 643 ends the inverse DPCMprocess, and returns the process to FIG. 28.

Accordingly, the differences between DC coefficients can be correctlydecoded. Therefore, the image decoding device 300 can suppress anincrease in the amount of coding of scaling lists.

<6. Sixth Embodiment>

<6-1. Other Syntax: First Example>

FIG. 43 illustrates another example of the syntax for a scaling list.This drawing corresponds to FIG. 12. In the example illustrated in FIG.12, the initial value of nextcoef is set to a predetermined constant(for example, 8). Alternatively, as illustrated in FIG. 43, the initialvalue of nextcoef may be overwritten with the DPCM data of the DCcoefficient (scaling_list_dc_coef_minus8).

Accordingly, the amount of coding of the initial AC coefficients (ACcoefficients (0, 0)) in a 16×16 scaling list and a 32×32 scaling listcan be reduced.

<6-2. Other Syntax: Second Example>

FIG. 44 illustrates another example of the syntax for a scaling list.This drawing corresponds to FIG. 12.

In the example illustrated in FIG. 12, when the value ofscaling_list_pred_matrix_id_delta, which is information that specifiesthe reference destination in the copy mode, is “0”, the scaling listthat precedes the current scaling list being processed by one scalinglist is referred to, and when the value ofscaling_list_pred_matrix_id_delta is “1”, the scaling list that precedesthe current scaling list being processed by two scaling lists isreferred to.

In contrast, in the example illustrated in FIG. 44, as illustrated inpart C of FIG. 44, when the value of scaling_list_pred_matrix_id_delta,which is information that specifies the reference destination in thecopy mode, is “0”, the default scaling list is referred to, and when thevalue of scaling_list_pred_matrix_id_delta is “1”, the immediatelypreceding scaling list is referred to.

In this manner, modifying the semantics ofscaling_list_pred_matrix_id_delta can simplify the syntax in a mannerillustrated in part B of FIG. 44 and can reduce the load of the DPCMprocess and the inverse DPCM process.

<6-3. Other Syntax: Third Example>

FIG. 45 illustrates another example of the syntax for a scaling list.This drawing corresponds to FIG. 12.

In the example illustrated in FIG. 45, both of the example illustratedin FIG. 43 and the example illustrated in FIG. 44 described above areused.

In the example illustrated in FIG. 45, accordingly, the amount of codingof the initial AC coefficients (AC coefficients (0, 0)) in a 16×16scaling list and a 32×32 scaling list can be reduced. In addition,syntax can be simplified and the load of the DPCM process and theinverse DPCM process can be reduced.

In the foregoing embodiments, the values of the predetermined constantsare arbitrary. In addition, the sizes of the scaling lists are alsoarbitrary.

Furthermore, while the foregoing description has been given of a sizetransformation process for a scaling list, a prediction matrix, or adifference matrix between them, the size transformation process may be aprocess for actually generating a matrix whose size has beentransformed, or may be a process for setting how to read each element ina matrix from a memory (read control of matrix data) without actuallygenerating data of the matrix.

In the size transformation process described above, each element in amatrix whose size has been transformed is constituted by any of theelements in the matrix whose size has not yet been transformed. That is,a matrix whose size has been transformed may be generated by readingelements in a matrix whose size has not yet been transformed, which isstored in a memory, using a certain method such as reading some of theelements in the matrix or reading one element a plurality of times. Inother words, a method for reading each element is defined (or readcontrol of matrix data is performed) to substantially implement the sizetransformation described above. This method may remove a process such aswriting matrix data whose size has been transformed to the memory. Inaddition, the reading of matrix data whose size has been transformedbasically depends on how to perform nearest neighbor interpolation andthe like, and therefore size transformation may be implemented by acomparatively low load process such as selecting an appropriate one of aplurality of options prepared in advance. Accordingly, the methoddescribed above may reduce the load of size transformation.

That is, the size transformation process described above includes aprocess for actually generating matrix data whose size has beentransformed and also includes read control of the matrix data.

Note that while the foregoing description has been made in the contextof a difference matrix being encoded and transmitted, this is merelyillustrative and a scaling list may be encoded and transmitted. In otherwords, the AC coefficients and DC coefficient of a scaling list whichhave been described above as coefficients to be processed may be the ACcoefficients and DC coefficient of a difference matrix between a scalinglist and a prediction matrix.

In addition, the amount of coding for information on parameters, flags,and so forth of a scaling list, such as the size and the list ID of thescaling list, may be reduced by, for example, taking a differencebetween the information and the previously transmitted information andtransmitting the difference.

Furthermore, while the foregoing description has been made in thecontext of a quantization matrix or a difference matrix of a large sizebeing down-converted and transmitted, this is merely illustrative and aquantization matrix or a difference matrix may be transmitted withoutbeing down-converted, while the size of the quantization matrix used forquantization is kept unchanged.

The present technology can be applied to any type of image encoding anddecoding that involves quantization and dequantization.

In addition, the present technology can also be applied to, for example,an image encoding device and an image decoding device used to receiveimage information (bit stream) compressed using an orthogonal transformsuch as a discrete cosine transform and motion compensation, such asMPEG or H.26x, via a network medium such as satellite broadcasting,cable television, the Internet, or a mobile phone. The presenttechnology can also be applied to an image encoding device and an imagedecoding device used for processing on storage media such as an opticaldisk, a magnetic disk, and a flash memory. Furthermore, the presenttechnology can also be applied to a quantization device and adequantization device included in the image encoding device and theimage decoding device described above, and the like.

<7. Seventh Embodiment>

<Application to Multi-View Image Encoding and Multi-View Image Decoding>

The series of processes described above can be applied to multi-viewimage encoding and multi-view image decoding. FIG. 46 illustrates anexample of a multi-view image encoding scheme.

As illustrated in FIG. 46, multi-view images include images at aplurality of viewpoints (or views). The plurality of views in themulti-view images include base views, each of which is encoded anddecoded using an image thereof without using an image of another view,and non-base views, each of which is encoded and decoded using an imageof another view. Each of the non-base views may be encoded and decodedusing an image of a base view or using an image of any other non-baseview.

When the multi-view images illustrated in FIG. 46 are to be encoded anddecoded, an image of each view is encoded and decoded. The methoddescribed above in the foregoing embodiments may be applied to theencoding and decoding of each view. This can suppress a reduction in theimage quality of the individual views.

Furthermore, flags and parameters used in the method described above inthe foregoing embodiments may be shared in the encoding and decoding ofeach view. This can suppress a reduction in coding efficiency.

More specifically, for example, information concerning a scaling list(for example, parameters, flags, and so forth) may be shared in theencoding and decoding of each view.

Needless to say, any other necessary information may be shared in theencoding and decoding of each view.

For example, when a scaling list or information concerning the scalinglist which is included in a sequence parameter set (SPS) or a pictureparameter set (PPS) is to be transmitted, if those (SPS and PPS) areshared among views, the scaling list or the information concerning thescaling list is also shared accordingly. This can suppress a reductionin coding efficiency.

Furthermore, matrix elements in a scaling list (or quantization matrix)for a base view may be changed in accordance with disparity valuesbetween views. Moreover, an offset value for adjusting a non-base viewmatrix element with regard to a matrix element in a scaling list(quantization matrix) for a base view may be transmitted. Accordingly,an increase in the amount of coding can be suppressed.

For example, a scaling list for each view may be separately transmittedin advance. When a scaling list is to be changed for each view, onlyinformation indicating the difference from the corresponding one of thescaling lists transmitted in advance may be transmitted. The informationindicating the difference is arbitrary, and may be, for example,information in units of 4×4 or 8×8 or a difference between matrices.

Note that if a scaling list or information concerning the scaling listis shared among views although an SPS or a PPS is not shared, the SPSsor PPSs for other views may be able to be referred to (that is, scalinglists or information concerning scaling lists for other views can beused).

Moreover, if such multi-view images are represented as images having, ascomponents, YUV images and depth images (Depth) corresponding to theamount of disparity between views, an independent scaling list orinformation concerning the scaling list for the image of each component(Y, U, V, and Depth) may be used.

For example, since a depth image (Depth) is an image of an edge, scalinglists are not necessary. Thus, even though an SPS or a PPS specifies theuse of a scaling list, a scaling list may not be applied (or a scalinglist in which all the matrix elements are the same (or flat) may beapplied) to a depth image (Depth).

<Multi-View Image Encoding Device>

FIG. 47 is a diagram illustrating a multi-view image encoding device forperforming the multi-view image encoding operation described above. Asillustrated in FIG. 47, a multi-view image encoding device 700 includesan encoding unit 701, an encoding unit 702, and a multiplexing unit 703.

The encoding unit 701 encodes an image of a base view, and generates anencoded base-view image stream. The encoding unit 702 encodes an imageof a non-base view, and generates an encoded non-base-view image stream.The multiplexing unit 703 multiplexes the encoded base-view image streamgenerated by the encoding unit 701 and the encoded non-base-view imagestream generated by the encoding unit 702, and generates an encodedmulti-view image stream.

The image encoding device 10 (FIG. 14) can be used for each of theencoding unit 701 and the encoding unit 702 of the multi-view imageencoding device 700. That is, an increase in the amount of coding of ascaling list in the encoding of each view can be suppressed, and areduction in the image quality of each view can be suppressed. Inaddition, the encoding unit 701 and the encoding unit 702 can performprocesses such as quantization and dequantization using the same flagsor parameters (that is, flags and parameters can be shared).Accordingly, a reduction in coding efficiency can be suppressed.

<Multi-View Image Decoding Device>

FIG. 48 is a diagram illustrating a multi-view image decoding device forperforming the multi-view image decoding operation described above. Asillustrated in FIG. 48, a multi-view image decoding device 710 includesa demultiplexing unit 711, a decoding unit 712, and a decoding unit 713.

The demultiplexing unit 711 demultiplexes an encoded multi-view imagestream in which an encoded base-view image stream and an encodednon-base-view image stream have been multiplexed, and extracts theencoded base-view image stream and the encoded non-base-view imagestream. The decoding unit 712 decodes the encoded base-view image streamextracted by the demultiplexing unit 711, and obtains an image of a baseview. The decoding unit 713 decodes the encoded non-base-view imagestream extracted by the demultiplexing unit 711, and obtains an image ofa non-base view.

The image decoding device 300 (FIG. 22) can be used for each of thedecoding unit 712 and the decoding unit 713 of the multi-view imagedecoding device 710. That is, an increase in the amount of coding of ascaling list in the decoding of each view can be suppressed, and areduction in the image quality of each view can be suppressed. Inaddition, the decoding unit 712 and the decoding unit 713 can performprocesses such as quantization and dequantization using the same flagsand parameters (that is, flags and parameters can be shared).Accordingly, a reduction in coding efficiency can be suppressed.

<8. Eighth Embodiment>

<Application to Layered Image Encoding and Layered Image Decoding>

The series of processes described above can be applied to layered imageencoding and layered image decoding (scalable encoding and scalabledecoding). FIG. 49 illustrates an example of a layered image encodingscheme.

Layered image encoding (scalable coding) is a process for dividing animage into a plurality of layers (layering) so as to provide image datawith the scalability function for a predetermined parameter and forencoding the individual layers. Layered image decoding (scalabledecoding) is a decoding process corresponding to layered image encoding.

As illustrated in FIG. 49, in image layering, one image is divided intoa plurality of sub-images (or layers) using as a reference apredetermined parameter with a scalability function. That is, imagesdecomposed into layers (or layered images) include multiple layered (orlayer) images having different values of the predetermined parameter.The plurality of layers in the layered images include base layers, eachof which is encoded and decoded using an image thereof without using animage of another layer, and non-base layers (also referred to asenhancement layers), each of which is encoded and decoded using an imageof another layer. Each of the non-base layers may be encoded and decodedusing an image of a base layer or using an image of any other non-baselayer.

In general, each of the non-base layers is composed of data of adifference image (difference data) between an image thereof and an imageof another layer in order to reduce redundancy. For example, in a casewhere one image is decomposed into two layers, namely, a base layer anda non-base layer (also referred to as an enhancement layer), an imagewith a quality lower than the original image may be obtained using onlythe data of the base layer, and the original image (that is, an imagewith a high quality) may be obtained by combining the data of the baselayer and the data of the non-base layer.

The layering of an image in the manner described above can facilitateobtaining of images with a wide variety of qualities in accordance withsituations. This ensures that image compression information can betransmitted from a server in accordance with the capabilities ofterminals and networks without implementing transcoding such that, forexample, image compression information on only base layers istransmitted to terminals having low processing capabilities, such asmobile phones, to reproduce moving images having a low spatial-temporalresolution or a low quality, and image compression information onenhancement layers in addition to base layers is transmitted toterminals having high processing capabilities, such as television setsand personal computers, to reproduce moving images having a highspatial-temporal resolution or a high quality.

When layered images as in the example illustrated in FIG. 49 are to beencoded and decoded, an image of each layer is encoded and decoded. Themethod described above in each of the foregoing embodiments may beapplied to the encoding and decoding of each layer. This can suppress areduction in the image quality of the individual layers.

Furthermore, flags and parameters used in the method described above ineach of the foregoing embodiments may be shared in the encoding anddecoding of each layer. This can suppress a reduction in codingefficiency.

More specifically, for example, information concerning a scaling list(for example, parameters, flags, and so forth) may be shared in theencoding and decoding of each layer.

Needless to say, any other necessary information may be shared in theencoding and decoding of each layer.

Examples of the layered images include images layered in spatialresolution (also referred to as spatial resolution scalability) (spatialscalability). In layered images with spatial resolution scalability, theresolutions of the images differ from layer to layer. For example, alayer of an image having the spatially lowest resolution is designatedas a base layer, and a layer of an image having a higher resolution thanthe base layer is designated as a non-base layer (an enhancement layer).

Image data of a non-base layer (an enhancement layer) may be dataindependent of the other layers, and, similarly to the base layers, animage having a resolution equivalent to the resolution of that layer maybe obtained only using the image data. Generally, however, image data ofa non-base layer (an enhancement layer) is data corresponding to adifference image between the image of that layer and an image of anotherlayer (for example, a layer one layer below that layer). In this case,an image having a resolution equivalent to that of a base layer isobtained only using the image data of the base layer whereas an imagehaving a resolution equivalent to that of a non-base layer (anenhancement layer) is obtained by the combination of the image data ofthat layer and the image data of another layer (for example, a layer onelayer below that layer). This can suppress redundancy of image databetween layers.

In layered images having the spatial resolution scalability describedabove, the resolutions of the images differ from layer to layer. Thus,the resolutions of the units of processing by which the individuallayers are encoded and decoded also differ. Accordingly, if a scalinglist (quantization matrix) is shared in the encoding and decoding of theindividual layers, the scaling list (quantization matrix) may beup-converted in accordance with the resolution ratios of the individuallayers.

For example, it is assumed that an image of a base layer has aresolution of 2K (for example, 1920×1080), and an image of a non-baselayer (an enhancement layer) has a resolution of 4K (for example,3840×2160). In this case, for example, the 16×16 size of the image ofthe base layer (2K image) corresponds to the 32×32 size of the image ofthe non-base layer (4K image). The scaling list (quantization matrix) isup-converted as appropriate in accordance with the resolution ratio.

For example, a 4×4 quantization matrix used for the quantization anddequantization of a base layer is up-converted to 8×8 in thequantization and dequantization of a non-base layer and is used.Similarly, an 8×8 scaling list of a base layer is up-converted to 16×16in a non-base layer. Similarly, a quantization matrix up-converted to16×16 in a base layer and used is up-converted to 32×32 in a non-baselayer.

Note that the parameter for which scalability is provided is not limitedto spatial resolution, and examples of the parameter may includetemporal resolution (temporal scalability). In layered images havingtemporal resolution scalability, the frame rates of images differ fromlayer to layer. Other examples include bit-depth scalability in whichthe bit-depth of image data differs from layer to layer, and chromascalability in which the format of components differs from layer tolayer.

Still other examples include SNR scalability in which the signal tonoise ratios (SNRs) of the images differ from layer to layer.

In view of improvement in image quality, desirably, the lower thesignal-to-noise ratio an image has, the smaller the quantization erroris made. To that end, in SNR scalability, desirably, different scalinglists (non-common scaling lists) are used for the quantization anddequantization of the individual layers in accordance with thesignal-to-noise ratio. For this reason, as described above, if a scalinglist is shared among layers, an offset value for adjusting matrixelements for an enhancement layer with regard to matrix elements in ascaling list for a base layer may be transmitted. More specifically,information indicating the difference between a common scaling list andan actually used scaling list may be transmitted on a layer-by-layerbasis. For example, the information indicating the difference may betransmitted in a sequence parameter set (SPS) or picture parameter set(PPS) for each layer. The information indicating the difference isarbitrary. For example, the information may be a matrix having elementsrepresenting difference values between corresponding elements in bothscaling lists, or may be a function indicating the difference.

<Layered Image Encoding Device>

FIG. 50 is a diagram illustrating a layered image encoding device forperforming the layered image encoding operation described above. Asillustrated in FIG. 50, a layered image encoding device 720 includes anencoding unit 721, an encoding unit 722, and a multiplexing unit 723.

The encoding unit 721 encodes an image of a base layer, and generates anencoded base-layer image stream. The encoding unit 722 encodes an imageof a non-base layer, and generates an encoded non-base-layer imagestream. The multiplexing unit 723 multiplexes the encoded base-layerimage stream generated by the encoding unit 721 and the encodednon-base-layer image stream generated by the encoding unit 722, andgenerates an encoded layered-image stream.

The image encoding device 10 (FIG. 14) can be used for each of theencoding unit 721 and the encoding unit 722 of the layered imageencoding device 720. That is, an increase in the amount of coding of ascaling list in the encoding of each layer can be suppressed, and areduction in the image quality of each layer can be suppressed. Inaddition, the encoding unit 721 and the encoding unit 722 can performprocesses such as quantization and dequantization using the same flagsor parameters (that is, flags and parameters can be shared).Accordingly, a reduction in coding efficiency can be suppressed.

<Layered Image Decoding Device>

FIG. 51 is a diagram illustrating a layered image decoding device forperforming the layered image decoding operation described above. Asillustrated in FIG. 51, a layered image decoding device 730 includes ademultiplexing unit 731, a decoding unit 732, and a decoding unit 733.

The demultiplexing unit 731 demultiplexes an encoded layered-imagestream in which an encoded base-layer image stream and an encodednon-base-layer image stream have been multiplexed, and extracts theencoded base-layer image stream and the encoded non-base-layer imagestream. The decoding unit 732 decodes the encoded base-layer imagestream extracted by the demultiplexing unit 731, and obtains an image ofa base layer. The decoding unit 733 decodes the encoded non-base-layerimage stream extracted by the demultiplexing unit 731, and obtains animage of a non-base layer.

The image decoding device 300 (FIG. 22) can be used for each of thedecoding unit 732 and the decoding unit 733 of the layered imagedecoding device 730. That is, an increase in the amount of coding of ascaling list in the decoding of each layer can be suppressed, and areduction in the image quality of each layer can be suppressed. Inaddition, the decoding unit 712 and the decoding unit 713 can performprocesses such as quantization and dequantization using the same flagsor parameters (that is, flags and parameters can be shared). Thus, areduction in coding efficiency can be suppressed.

<9. Ninth Embodiment>

<Computer>

The series of processes described above can be executed by hardware orcan also be executed by software. In this case, the series of processesmay be implemented as, for example, a computer illustrated in FIG. 52.

In FIG. 52, a CPU (Central Processing Unit) 801 in a computer 800executes various processing operations in accordance with a programstored in a ROM (Read Only Memory) 802 or a program loaded into a RAM(Random Access Memory) 803 from a storage unit 813. The RAM 803 alsostores, as desired, data and the like necessary for the CPU 801 toexecute various processing operations.

The CPU 801, the ROM 802, and the RAM 803 are connected to one anothervia a bus 804. An input/output interface 810 is also connected to thebus 804.

The input/output interface 810 is connected to an input unit 811, anoutput unit 812, the storage unit 813, and a communication unit 814. Theinput unit 811 includes a keyboard, a mouse, a touch panel, an inputterminal, and so forth. The output unit 812 includes desired outputdevices, such as a speaker and a display including a CRT (Cathode RayTube), an LCD (Liquid Crystal Display), and an OELD (OrganicElectroLuminescence Display), an output terminal, and so forth. Thestorage unit 813 includes a desired storage medium such as a hard diskor a flash memory, and a control unit that controls the input and outputof the storage medium. The communication unit 814 includes desired wiredor wireless communication devices such as a modem, a LAN interface, aUSB (Universal Serial Bus) device, and a Bluetooth (registeredtrademark) device. The communication unit 814 performs communicationprocessing with other communication devices via networks including, forexample, the Internet.

A drive 815 is further connected to the input/output interface 810, ifnecessary. A removable medium 821 such as a magnetic disk, an opticaldisk, a magneto-optical disk, or a semiconductor memory is placed in thedrive 815, as desired. The drive 815 reads a computer program, data, andthe like from the removable medium 821 placed therein in accordance withthe control of, for example, the CPU 801. The read data and computerprogram are supplied to, for example, the RAM 803. The computer programread from the removable medium 821 is further installed into the storageunit 813, if necessary.

When the series of processes described above is executed by software, aprogram constituting the software is installed from a network or arecording medium.

Examples of the recording medium include, as illustrated in FIG. 52, theremovable medium 821, which is distributed separately from the devicebody to deliver the program to a user, such as a magnetic disk(including a flexible disk), an optical disk (including a CD-ROM(Compact Disc-Read Only Memory) and a DVD (Digital Versatile Disc)), amagneto-optical disk (including an MD (Mini Disc)), or a semiconductormemory on which the program is recorded. Other examples of the recordingmedium include devices distributed to a user in a manner of beingincorporated in advance in the device body, such as the ROM 802 and thehard disk included in the storage unit 813 on which the program isrecorded.

Note that the program which the computer 800 executes may be a programin which processing operations are performed in a time-series manner inthe order stated herein, or may be a program in which processingoperations are performed in parallel or at necessary timings such aswhen called.

In addition, steps describing a program stored in a recording medium, asused herein, include, of course, processing operations performed in atime-series manner in the order stated, and processing operationsexecuted in parallel or individually but not necessarily performed in atime-series manner.

Furthermore, the term “system”, as used herein, refers to a set ofconstituent elements (devices, modules (components), etc.) regardless ofwhether all the constituent elements are accommodated in the samehousing or not. Thus, a plurality of devices accommodated in separatehousings and connected via a network, and a single device including aplurality of modules accommodated in a single housing are defined as asystem.

In addition, a configuration described above as a single device (orprocessing units) may be divided into a plurality of devices (orprocessing units). Conversely, configurations described above as aplurality of devices (or processing units) may be combined into a singledevice (or processing unit). Additionally, of course, a configurationother than that described above may be added to the configuration ofeach device (or each processing unit). Furthermore, part of theconfiguration of a certain device (or processing unit) may be includedin the configuration of another device (or another processing unit) ifthe devices (or processing units) have substantially the sameconfiguration and/or operation in terms of an entire system. In otherwords, embodiments of the present technology are not limited to theforegoing embodiments, and a variety of modifications can be madewithout departing from the scope of the present technology.

While preferred embodiments of the present disclosure have beendescribed in detail with reference to the accompanying drawings, thetechnical scope of the present disclosure is not limited to the examplesdisclosed herein. It is apparent that a person having ordinary knowledgein the technical field of the present disclosure could achieve variouschanges or modifications without departing from the scope of thetechnical concept as defined in the claims, and it is to be understoodthat such changes or modifications also fall within the technical scopeof the present disclosure as a matter of course.

For example, the present technology may be implemented with a cloudcomputing configuration in which a plurality of devices share andcooperate to process a single function via a network.

In addition, each of the steps illustrated in the flowcharts describedabove may be executed by a single device or by a plurality of devices ina shared manner.

Furthermore, if a single step includes a plurality of processes, theplurality of processes included in the single step may be executed by asingle device or by a plurality of devices in a shared manner.

The image encoding device 10 (FIG. 14) and the image decoding device 300(FIG. 22) according to the foregoing embodiments may be applied tovarious pieces of electronic equipment such as a transmitter or areceiver used to deliver data via satellite broadcasting, wiredbroadcasting such as cable TV, or the Internet or used to deliver datato or from terminals via cellular communication, a recording apparatusthat records images on media such as an optical disk, a magnetic disk,and a flash memory, and a reproducing apparatus that reproduces imagesfrom such storage media. Four example applications will be describedhereinafter.

<10. Example Applications>

<First Example Application: Television Receiver>

FIG. 53 illustrates an example of a schematic configuration of atelevision apparatus to which the foregoing embodiments are applied. Atelevision apparatus 900 includes an antenna 901, a tuner 902, ademultiplexer 903, a decoder 904, a video signal processing unit 905, adisplay unit 906, an audio signal processing unit 907, a speaker 908, anexternal interface 909, a control unit 910, a user interface 911, and abus 912.

The tuner 902 extracts a signal in a desired channel from a broadcastsignal received via the antenna 901, and demodulates the extractedsignal. Then, the tuner 902 outputs an encoded bit stream obtained bydemodulation to the demultiplexer 903. In other words, the tuner 902functions as a transmission unit in the television apparatus 900 forreceiving an encoded stream including encoded images.

The demultiplexer 903 demultiplexes the encoded bit stream into a videostream and an audio stream of a program to be viewed, and outputs thedemultiplexed streams to the decoder 904. The demultiplexer 903 furtherextracts auxiliary data such as EPG (Electronic Program Guide) from theencoded bit stream, and supplies the extracted data to the control unit910. Note that the demultiplexer 903 may also descramble the encoded bitstream if the encoded bit stream has been scrambled.

The decoder 904 decodes the video stream and audio stream input from thedemultiplexer 903. Then, the decoder 904 outputs video data generatedthrough the decoding process to the video signal processing unit 905.The decoder 904 further outputs audio data generated through thedecoding process to the audio signal processing unit 907.

The video signal processing unit 905 reproduces the video data inputfrom the decoder 904, and causes video to be displayed on the displayunit 906. The video signal processing unit 905 may also cause anapplication screen supplied via a network to be displayed on the displayunit 906. The video signal processing unit 905 may further performadditional processing, such as noise removal, on the video data inaccordance with the settings. In addition, the video signal processingunit 905 may also generate a GUI (Graphical User Interface) image suchas a menu, a button, or a cursor, and superimpose the generated image onan output image.

The display unit 906 is driven by a drive signal supplied from the videosignal processing unit 905, and displays video or an image on a videosurface of a display device (such as a liquid crystal display, a plasmadisplay, or an OELD (Organic ElectroLuminescence Display) (organic ELdisplay)).

The audio signal processing unit 907 performs reproduction processes,such as D/A conversion and amplification, on the audio data input fromthe decoder 904, and causes audio to be output from the speaker 908. Theaudio signal processing unit 907 may further perform additionalprocessing, such as noise removal, on the audio data.

The external interface 909 is an interface for connecting the televisionapparatus 900 to an external device or a network. For example, a videostream or audio stream received via the external interface 909 may bedecoded by the decoder 904. In other words, the external interface 909also functions as a transmission unit in the television apparatus 900for receiving an encoded stream including encoded images.

The control unit 910 includes a processor such as a CPU, and memoriessuch as a RAM and a ROM. The memories store a program to be executed bythe CPU, program data, EPG data, data acquired via a network, and soforth. The program stored in the memories is read and executed by theCPU when, for example, the television apparatus 900 is started. The CPUexecutes the program to control the operation of the televisionapparatus 900 in accordance with, for example, an operation signal inputfrom the user interface 911.

The user interface 911 is connected to the control unit 910. The userinterface 911 includes, for example, buttons and switches for allowingthe user to operate the television apparatus 900, a receiving unit for aremote control signal, and so forth. The user interface 911 detects anoperation of the user via the above-described components to generate anoperation signal, and outputs the generated operation signal to thecontrol unit 910.

The bus 912 serves to connect the tuner 902, the demultiplexer 903, thedecoder 904, the video signal processing unit 905, the audio signalprocessing unit 907, the external interface 909, and the control unit910 to one another.

In the television apparatus 900 having the configuration describedabove, the decoder 904 has the function of the image decoding device 300(FIG. 22) according to the foregoing embodiments. Accordingly, thetelevision apparatus 900 can suppress an increase in the amount ofcoding of a scaling list.

<Second Example Application: Mobile Phone>

FIG. 54 illustrates an example of a schematic configuration of a mobilephone to which the foregoing embodiments are applied. A mobile phone 920includes an antenna 921, a communication unit 922, an audio codec 923, aspeaker 924, a microphone 925, a camera unit 926, an image processingunit 927, a multiplexing/demultiplexing unit 928, arecording/reproducing unit 929, a display unit 930, a control unit 931,an operation unit 932, and a bus 933.

The antenna 921 is connected to the communication unit 922. The speaker924 and the microphone 925 are connected to the audio codec 923. Theoperation unit 932 is connected to the control unit 931. The bus 933serves to connect the communication unit 922, the audio codec 923, thecamera unit 926, the image processing unit 927, themultiplexing/demultiplexing unit 928, the recording/reproducing unit929, the display unit 930, and the control unit 931 to one another.

The mobile phone 920 performs operations, such as transmitting andreceiving an audio signal, transmitting and receiving an electronic mailor image data, capturing an image, and recording data, in variousoperation modes including a voice call mode, a data communication mode,an image capture mode, and a videophone mode.

In the voice call mode, an analog audio signal generated by themicrophone 925 is supplied to the audio codec 923. The audio codec 923converts the analog audio signal into audio data, and performs A/Dconversion and compression on the converted audio data. The audio codec923 then outputs the compressed audio data to the communication unit922. The communication unit 922 encodes and modulates the audio data,and generates a transmission signal. The communication unit 922 thentransmits the generated transmission signal to a base station (notillustrated) via the antenna 921. Further, the communication unit 922amplifies a radio signal received via the antenna 921, and performsfrequency conversion on the amplified signal to acquire a receptionsignal. Then, the communication unit 922 demodulates and decodes thereception signal to generate audio data, and outputs the generated audiodata to the audio codec 923. The audio codec 923 expands the audio data,and performs D/A conversion to generate an analog audio signal. Theaudio codec 923 then supplies the generated audio signal to the speaker924 to cause audio to be output.

Furthermore, in the data communication mode, for example, the controlunit 931 generates text data that forms an electronic mail in accordancewith an operation of the user via the operation unit 932. Furthermore,the control unit 931 causes text to be displayed on the display unit930. The control unit 931 further generates electronic mail data inaccordance with a transmission instruction given from the user via theoperation unit 932, and outputs the generated electronic mail data tothe communication unit 922. The communication unit 922 encodes andmodulates the electronic mail data to generate a transmission signal.Then, the communication unit 922 transmits the generated transmissionsignal to the base station (not illustrated) via the antenna 921.Further, the communication unit 922 amplifies a radio signal receivedvia the antenna 921, and performs frequency conversion on the amplifiedsignal to acquire a reception signal. Then, the communication unit 922demodulates and decodes the reception signal to restore electronic maildata, and outputs the restored electronic mail data to the control unit931. The control unit 931 causes the content of the electronic mail tobe displayed on the display unit 930, and also causes the electronicmail data to be stored in a storage medium of the recording/reproducingunit 929.

The recording/reproducing unit 929 includes a desired readable/writablestorage medium. The storage medium may be, for example, a built-instorage medium such as a RAM or a flash memory, or an external storagemedium such as a hard disk, a magnetic disk, a magneto-optical disk, anoptical disk, a USB memory, or a memory card.

Furthermore, in the image capture mode, for example, the camera unit 926captures an image of an object to generate image data, and outputs thegenerated image data to the image processing unit 927. The imageprocessing unit 927 encodes the image data input from the camera unit926, and causes an encoded stream to be stored in the storage medium ofthe recording/reproducing unit 929.

Furthermore, in the videophone mode, for example, themultiplexing/demultiplexing unit 928 multiplexes the video streamencoded by the image processing unit 927 and the audio stream input fromthe audio codec 923, and outputs a multiplexed stream to thecommunication unit 922. The communication unit 922 encodes and modulatesthe stream to generate a transmission signal. Then, the communicationunit 922 transmits the generated transmission signal to the base station(not illustrated) via the antenna 921. The communication unit 922further amplifies a radio signal received via the antenna 921, andperforms frequency conversion on the amplified signal to acquire areception signal. The transmission signal and the reception signal mayinclude an encoded bit stream. The communication unit 922 demodulatesand decodes the reception signal to restore a stream, and outputs therestored stream to the multiplexing/demultiplexing unit 928. Then, themultiplexing/demultiplexing unit 928 demultiplexes the input stream intoa video stream and an audio stream, and outputs the video stream and theaudio stream to the image processing unit 927 and the audio codec 923,respectively. The image processing unit 927 decodes the video stream togenerate video data. The video data is supplied to the display unit 930,and a series of images is displayed by the display unit 930. The audiocodec 923 expands the audio stream, and performs D/A conversion togenerate an analog audio signal. The audio codec 923 then supplies thegenerated audio signal to the speaker 924 to cause audio to be output.

In the mobile phone 920 having the configuration described above, theimage processing unit 927 has the function of the image encoding device10 (FIG. 14) and the function of the image decoding device 300 (FIG. 22)according to the foregoing embodiments. Accordingly, the mobile phone920 can suppress an increase in the amount of coding of a scaling list.

In addition, while a description has been given of the mobile phone 920,for example, an image encoding device and an image decoding device towhich the present technology is applied may be used in, similarly to themobile phone 920, any apparatus having an imaging function and acommunication function similar to those of the mobile phone 920, such asa PDA (Personal Digital Assistants), a smartphone, a UMPC (Ultra MobilePersonal Computer), a netbook, or a notebook personal computer.

<Third Example Application: Recording/Reproducing Apparatus>

FIG. 55 illustrates an example of a schematic configuration of arecording/reproducing apparatus to which the foregoing embodiments areapplied. A recording/reproducing apparatus 940 encodes, for example,audio data and video data of a received broadcast program, and recordsthe encoded audio data and video data on a recording medium.Furthermore, the recording/reproducing apparatus 940 may also encodeaudio data and video data acquired from, for example, another apparatus,and record the encoded audio data and video data on a recording medium.Moreover, the recording/reproducing apparatus 940 reproduces, forexample, data recorded on a recording medium using a monitor and aspeaker in accordance with an instruction given from a user. In thiscase, the recording/reproducing apparatus 940 decodes audio data andvideo data.

The recording/reproducing apparatus 940 includes a tuner 941, anexternal interface 942, an encoder 943, an HDD (Hard Disk Drive) 944, adisk drive 945, a selector 946, a decoder 947, an OSD (On-ScreenDisplay) 948, a control unit 949, and a user interface 950.

The tuner 941 extracts a signal in a desired channel from a broadcastsignal received via an antenna (not illustrated), and demodulates theextracted signal. The tuner 941 then outputs an encoded bit streamobtained by demodulation to the selector 946. In other words, the tuner941 functions as a transmission unit in the recording/reproducingapparatus 940.

The external interface 942 is an interface for connecting therecording/reproducing apparatus 940 to an external device or a network.The external interface 942 may be, for example, an IEEE 1394 interface,a network interface, a USB interface, a flash memory interface, or thelike. For example, video data and audio data received via the externalinterface 942 are input to the encoder 943. In other words, the externalinterface 942 functions as a transmission unit in therecording/reproducing apparatus 940.

The encoder 943 encodes video data and audio data input from theexternal interface 942 if the video data and audio data have not beenencoded. The encoder 943 then outputs an encoded bit stream to theselector 946.

The HDD 944 records an encoded bit stream including compressed contentdata such as video and audio, various programs, and other data on aninternal hard disk. Furthermore, the HDD 944 reads the above-describeddata from the hard disk when reproducing video and audio.

The disk drive 945 records and reads data on and from a recording mediumplaced therein. The recording medium placed in the disk drive 945 maybe, for example, a DVD disk (such as DVD-Video, DVD-RAM, DVD-R, DVD-RW,DVD+R, or DVD+RW) or a Blu-ray (registered trademark) disc.

The selector 946 selects an encoded bit stream input from the tuner 941or the encoder 943 when recording video and audio, and outputs theselected encoded bit stream to the HDD 944 or the disk drive 945. Whenreproducing video and audio, the selector 946 outputs an encoded bitstream input from the HDD 944 or the disk drive 945 to the decoder 947.

The decoder 947 decodes the encoded bit stream to generate video dataand audio data. The decoder 947 then outputs the generated video data tothe OSD 948. The decoder 904 further outputs the generated audio data toan external speaker.

The OSD 948 reproduces the video data input from the decoder 947, anddisplays video. In addition, the OSD 948 may also superimpose a GUIimage such as a menu, a button, or a cursor on the video to bedisplayed.

The control unit 949 includes a processor such as a CPU, and memoriessuch as a RAM and a ROM. The memories store a program to be executed bythe CPU, program data, and so forth. The program stored in the memoriesis read and executed by the CPU when, for example, therecording/reproducing apparatus 940 is started. The CPU executes theprogram to control the operation of the recording/reproducing apparatus940 in accordance with, for example, an operation signal input from theuser interface 950.

The user interface 950 is connected to the control unit 949. The userinterface 950 includes, for example, buttons and switches for allowingthe user to operate the recording/reproducing apparatus 940, a receivingunit for a remote control signal, and so forth. The user interface 950detects an operation of the user via the above-described components togenerate an operation signal, and outputs the generated operation signalto the control unit 949.

In the recording/reproducing apparatus 940 having the configurationdescribed above, the encoder 943 has the function of the image encodingdevice 10 (FIG. 14) according to the foregoing embodiments. Furthermore,the decoder 947 has the function of the image decoding device 300 (FIG.22) according to the foregoing embodiments. Accordingly, therecording/reproducing apparatus 940 can suppress an increase in theamount of coding of a scaling list.

<Fourth Example Application: Imaging Apparatus>

FIG. 56 illustrates an example of a schematic configuration of animaging apparatus to which the foregoing embodiments are applied. Animaging apparatus 960 captures an image of an object to generate imagedata, encodes the image data, and records the encoded image data on arecording medium.

The imaging apparatus 960 includes an optical block 961, an imaging unit962, a signal processing unit 963, an image processing unit 964, adisplay unit 965, an external interface 966, a memory 967, a mediumdrive 968, an OSD 969, a control unit 970, a user interface 971, and abus 972.

The optical block 961 is connected to the imaging unit 962. The imagingunit 962 is connected to the signal processing unit 963. The displayunit 965 is connected to the image processing unit 964. The userinterface 971 is connected to the control unit 970. The bus 972 servesto connect the image processing unit 964, the external interface 966,the memory 967, the medium drive 968, the OSD 969, and the control unit970 to one another.

The optical block 961 includes a focus lens, an aperture mechanism, andso forth. The optical block 961 forms an optical image of the object onan imaging surface of the imaging unit 962. The imaging unit 962includes an image sensor such as a CCD or CMOS image sensor, andconverts the optical image formed on the imaging surface into an imagesignal serving as an electrical signal by performing photoelectricconversion. The imaging unit 962 then outputs the image signal to thesignal processing unit 963.

The signal processing unit 963 performs various camera signal processingoperations, such as knee correction, gamma correction, and colorcorrection, on the image signal input from the imaging unit 962. Thesignal processing unit 963 outputs the image data subjected to camerasignal processing operations to the image processing unit 964.

The image processing unit 964 encodes the image data input from thesignal processing unit 963 to generate encoded data. The imageprocessing unit 964 then outputs the generated encoded data to theexternal interface 966 or the medium drive 968. Further, the imageprocessing unit 964 decodes the encoded data input from the externalinterface 966 or the medium drive 968 to generate image data. The imageprocessing unit 964 then outputs the generated image data to the displayunit 965. Furthermore, the image processing unit 964 may also output theimage data input from the signal processing unit 963 to the display unit965 to cause an image to be displayed. Moreover, the image processingunit 964 may also superimpose display data acquired from the OSD 969 onthe image to be output to the display unit 965.

The OSD 969 generates a GUI image such as a menu, a button, or a cursor,and outputs the generated image to the image processing unit 964.

The external interface 966 is formed as, for example, a USB input/outputterminal. The external interface 966 connects, for example, the imagingapparatus 960 to a printer when printing an image. A drive is furtherconnected to the external interface 966, if necessary. A removablemedium such as a magnetic disk or an optical disk is placed in thedrive, and a program read from the removable medium may be installedinto the imaging apparatus 960. In addition, the external interface 966may also be formed as a network interface to be connected to a networksuch as a LAN or the Internet. In other words, the external interface966 functions as a transmission unit in the imaging apparatus 960.

The recording medium to be placed in the medium drive 968 may be, forexample, any readable/writable removable medium such as a magnetic disk,a magneto-optical disk, an optical disk, or a semiconductor memory.Alternatively, a recording medium may be fixedly attached to the mediumdrive 968, and may form a built-in hard disk drive or a non-portablestorage unit such as an SSD (Solid State Drive).

The control unit 970 includes a processor such as a CPU, and memoriessuch as a RAM and a ROM. The memories store a program to be executed bythe CPU, program data, and so forth. The program stored in the memoriesis read and executed by the CPU when, for example, the imaging apparatus960 is started. The CPU executes the program to control the operation ofthe imaging apparatus 960 in accordance with, for example, an operationsignal input from the user interface 971.

The user interface 971 is connected to the control unit 970. The userinterface 971 includes, for example, buttons, switches, and so forth forallowing the user to operate the imaging apparatus 960. The userinterface 971 detects an operation of the user via the above-describedcomponents to generate an operation signal, and outputs the generatedoperation signal to the control unit 970.

In the imaging apparatus 960 having the configuration described above,the image processing unit 964 has the function of the image encodingdevice 10 (FIG. 14) and the function of the image decoding device 300(FIG. 22) according to the foregoing embodiments. Thus, the imagingapparatus 960 can suppress an increase in the amount of coding of ascaling list.

<7. Example Applications of Scalable Coding>

<First System>

Next, a specific example of use of scalable coded data which has beenencoded using scalable coding (layered (image) coding) will bedescribed. Scalable coding may be used for, for example, the selectionof data to be transmitted, as in an example illustrated in FIG. 57.

In a data transmission system 1000 illustrated in FIG. 57, adistribution server 1002 reads scalable coded data stored in a scalablecoded data storage unit 1001, and distributes the scalable coded data toterminal devices, such as a personal computer 1004, an AV device 1005, atablet device 1006, and a mobile phone 1007, via a network 1003.

In this case, the distribution server 1002 selects encoded data havingdesired quality in accordance with the performance of the terminaldevice, the communication environment, and the like, and transmits theselected encoded data. Even if the distribution server 1002 transmitsdata having quality higher than necessary, the terminal device may notalways obtain a high-quality image, and delay or overflow may be caused.In addition, such data may occupy communication bandwidth more thannecessary, or may increase the load on the terminal device more thannecessary. Conversely, even if the distribution server 1002 transmitsdata having quality lower than necessary, the terminal device may notnecessarily obtain an image with a sufficient quality. Thus, thedistribution server 1002 reads the scalable coded data stored in thescalable coded data storage unit 1001, if necessary, as encoded datahaving quality appropriate for the performance of the terminal device,communication environment, and the like, and transmits the read encodeddata.

For example, it is assumed that the scalable coded data storage unit1001 stores scalable coded data (BL+EL) 1011 which has been scalablycoded. The scalable coded data (BL+EL) 1011 is encoded data including abase layer and an enhancement layer, and is data which is decoded toobtain both an image of the base layer and an image of the enhancementlayer.

The distribution server 1002 selects an appropriate layer in accordancewith the performance of a terminal device that transmits data, thecommunication environment, and the like, and reads the data of thelayer. For example, the distribution server 1002 reads high-qualityscalable coded data (BL+EL) 1011 from the scalable coded data storageunit 1001, and transmits the read scalable coded data (BL+EL) 1011 tothe personal computer 1004 or the tablet device 1006, which has highprocessing capabilities, as it is. In contrast, for example, thedistribution server 1002 extracts the data of the base layer from thescalable coded data (BL+EL) 1011, and transmits the extracted data ofthe base layer to the AV device 1005 and the mobile phone 1007, whichhas low processing capabilities, as scalable coded data (BL) 1012 havingthe same content as the scalable coded data (BL+EL) 1011 but havinglower quality than the scalable coded data (BL+EL) 1011.

The use of scalable coded data in this manner facilitates the adjustmentof the amount of data, thereby suppressing the occurrence of delay oroverflow and suppressing an unnecessary increase in the load on aterminal device or a communication medium. Furthermore, the scalablecoded data (BL+EL) 1011 has reduced redundancy between layers, andtherefore has a smaller amount of data than data having individuallyencoded data of the respective layers. Accordingly, the storage area ofthe scalable coded data storage unit 1001 can be more efficientlyutilized.

Note that since various devices such as the personal computer 1004, theAV device 1005, the tablet device 1006, and the mobile phone 1007 can beused as terminal devices, the hardware performance of terminal devicesdiffers from device to device. In addition, since various applicationsmay be executed by terminal devices, the software capabilities of theapplications may vary. Furthermore, the network 1003 serving as acommunication medium may be implemented as any communication linenetwork which can be wired, wireless, or both, such as the Internet anda LAN (Local Area Network), and have various data transmissioncapabilities. Such performance and capabilities may vary depending onother communication and the like.

Accordingly, prior to the start of transmission of data, thedistribution server 1002 may communicate with a terminal device to whichthe data is to be transmitted, and may obtain information concerning thecapabilities of the terminal device, such as the hardware performance ofthe terminal device or the performance of application (software)executed by the terminal device, and also information concerning thecommunication environment, such as the available bandwidth of thenetwork 1003. In addition, the distribution server 1002 may select anappropriate layer on the basis of the obtained information.

Note that a layer may be extracted by a terminal device. For example,the personal computer 1004 may decode the transmitted scalable codeddata (BL+EL) 1011, and display an image of a base layer or an image ofan enhancement layer. Alternatively, for example, the personal computer1004 may extract the scalable coded data (BL) 1012 of the base layerfrom the transmitted scalable coded data (BL+EL) 1011, store theextracted scalable coded data (BL) 1012, transfer the extracted scalablecoded data (BL) 1012 to another device, or decode the extracted scalablecoded data (BL) 1012 to display an image of the base layer.

Needless to say, the number of scalable coded data storage units 1001,the number of distribution servers 1002, the number of networks 1003,and the number of terminal devices are arbitrary. Furthermore, while adescription has been given of an example in which the distributionserver 1002 transmits data to a terminal device, examples of use are notlimited to this example. The data transmission system 1000 may be usedin any system that selects an appropriate layer, when transmittingencoded data which has been encoded using scalable coding to a terminaldevice, in accordance with the capabilities of the terminal device, thecommunication environment, and the like.

In addition, the present technology can also be applied to the datatransmission system 1000 as illustrated in FIG. 57 described above in amanner similar to an application to the hierarchical encoding andhierarchical decoding described above with reference to FIGS. 49 to 51,thereby achieving advantages similar to the advantages described abovewith reference to FIGS. 49 to 51.

<Second System>

Scalable coding may also be used for, for example, as in an exampleillustrated in FIG. 58, transmission via a plurality of communicationmedia.

In a data transmission system 1100 illustrated in FIG. 58, a broadcaststation 1101 transmits scalable coded data (BL) 1121 of a base layer viaterrestrial broadcasting 1111. The broadcast station 1101 furthertransmits (for example, packetizes and transmits) scalable coded data(EL) 1122 of an enhancement layer via a desired network 1112 formed of acommunication network which can be wired, wireless, or both.

A terminal device 1102 has a function to receive the terrestrialbroadcasting 1111 from the broadcast station 1101, and receives thescalable coded data (BL) 1121 of the base layer transmitted via theterrestrial broadcasting 1111. The terminal device 1102 further has acommunication function to perform communication via the network 1112,and receives the scalable coded data (EL) 1122 of the enhancement layertransmitted via the network 1112.

The terminal device 1102 decodes the scalable coded data (BL) 1121 ofthe base layer acquired via the terrestrial broadcasting 1111 inaccordance with, for example, a user instruction or the like to obtainan image of the base layer, stores the scalable coded data (BL) 1121, ortransfers the scalable coded data (BL) 1121 to another device.

Furthermore, the terminal device 1102 combines the scalable coded data(BL) 1121 of the base layer acquired via the terrestrial broadcasting1111 with the scalable coded data (EL) 1122 of the enhancement layeracquired via the network 1112 in accordance with, for example, a userinstruction or the like to obtain scalable coded data (BL+EL), anddecodes the scalable coded data (BL+EL) to obtain an image of theenhancement layer, stores the scalable coded data (BL+EL), or transfersthe scalable coded data (BL+EL) to another device.

As described above, scalable coded data can be transmitted via, forexample, communication media different from one layer to another. Thus,the load can be distributed, and delay or overflow can be suppressedfrom occurring.

Moreover, a communication medium to be used for transmission may beselectable for each layer in accordance with the situation. For example,the scalable coded data (BL) 1121 of the base layer having a relativelylarge amount of data may be transmitted via a communication mediumhaving a large bandwidth, and the scalable coded data (EL) 1122 of theenhancement layer having a relatively small amount of data may betransmitted via a communication medium having a narrow bandwidth.Alternatively, for example, the communication medium via which thescalable coded data (EL) 1122 of the enhancement layer is to betransmitted may be switched between the network 1112 and the terrestrialbroadcasting 1111 in accordance with the available bandwidth of thenetwork 1112. As a matter of course, the above similarly applies to dataof an arbitrary layer.

Control in the manner described above can further suppress an increasein the load of data transmission.

Needless to say, the number of layers is arbitrary, and the number ofcommunication media to be used for transmission is also arbitrary. Inaddition, the number of terminal devices 1102 to which data is to bedistributed is also arbitrary. Furthermore, while a description has beengiven in the context of broadcasting from the broadcast station 1101 byway of example, examples of use are not limited to this example. Thedata transmission system 1100 may be used in any system that dividesdata encoded using scalable coding into a plurality of segments in unitsof layers and transmits the data segments via a plurality of lines.

In addition, the present technology can also be applied to the datatransmission system 1100 as illustrated in FIG. 58 described above in amanner similar to an application to the hierarchical encoding andhierarchical decoding described above with reference to FIGS. 49 to 51,thereby achieving advantages similar to the advantages described abovewith reference to FIGS. 49 to 51.

<Third System>

Scalable coding may also be used for, for example, as in an exampleillustrated in FIG. 59, the storage of encoded data.

In an imaging system 1200 illustrated in FIG. 59, an imaging apparatus1201 performs scalable coding on image data obtained by capturing animage of an object 1211, and supplies the resulting data to a scalablecoded data storage device 1202 as scalable coded data (BL+EL) 1221.

The scalable coded data storage device 1202 stores the scalable codeddata (BL+EL) 1221 supplied from the imaging apparatus 1201 at thequality corresponding to the situation. For example, in normal time, thescalable coded data storage device 1202 extracts data of a base layerfrom the scalable coded data (BL+EL) 1221, and stores the extracted dataof the base layer as scalable coded data (BL) 1222 of the base layerhaving a low quality and a small amount of data. In contrast, forexample, in attention time, the scalable coded data storage device 1202stores the scalable coded data (BL+EL) 1221 having a high quality and alarge amount of data, as it is.

Accordingly, the scalable coded data storage device 1202 can save animage at high quality only when necessary. This can suppress an increasein the amount of data while suppressing a reduction in the worth of theimage due to a reduction in quality, and can improve use efficiency ofthe storage area.

For example, it is assumed that the imaging apparatus 1201 is a securitycamera. If an object to be monitored (for example, an intruder) does notappear in a captured image (normal time), it may be probable that thecaptured image does not have important content. Thus, a reduction in theamount of data is prioritized, and the image data (scalable coded data)of the image is stored at low quality. In contrast, if an object to bemonitored appears as the object 1211 in a captured image (attentiontime), it may be probable that the captured image has important content.Thus, image quality is prioritized, and the image data (scalable codeddata) of the image is stored at high quality.

Note that either the normal time or the attention time may be determinedby, for example, the scalable coded data storage device 1202 byanalyzing an image. Alternatively, the imaging apparatus 1201 maydetermine the normal time or the attention time, and may transmit thedetermination result to the scalable coded data storage device 1202.

Note that the determination of either the normal time or the attentiontime may be based on an arbitrary standard, and an image on which thedetermination is based may have any content. Needless to say, conditionsother than the content of an image may be used as the determinationstandard. The state may be changed in accordance with, for example, themagnitude, waveform, or the like of recorded audio, or may be changed atintervals of a predetermined period of time. Alternatively, the statemay be changed in accordance with an external instruction such as a userinstruction.

Furthermore, while a description has been given of an example ofchanging between two states, namely, normal time and attention time, thenumber of states is arbitrary, and the state change may be made betweenmore than two states, such as normal time, attention time, moreattention time, and much more attention time. Note that the upper limitnumber of states to be changed depends on the number of layers ofscalable coded data.

Moreover, the imaging apparatus 1201 may be configured to determine thenumber of layers of scalable coding in accordance with the state. Forexample, in normal time, the imaging apparatus 1201 may generatescalable coded data (BL) 1222 of the base layer having a low quality anda small amount of data, and supply the generated scalable coded data(BL) 1222 to the scalable coded data storage device 1202. Furthermore,for example, in attention time, the imaging apparatus 1201 may generatescalable coded data (BL+EL) 1221 of the base layer having a high qualityand a large amount of data, and supply the generated scalable coded data(BL+EL) 1221 to the scalable coded data storage device 1202.

While a security camera has been described as an example, the imagingsystem 1200 may be used in any application, and may be used inapplications other than a security camera.

In addition, the present technology can also be applied to the imagingsystem 1200 illustrated in FIG. 59 described above in a manner similarto an application to the hierarchical encoding and hierarchical decodingdescribed above with reference to FIGS. 49 to 51, thereby achievingadvantages similar to the advantages described above with reference toFIGS. 49 to 51.

Note that the present technology can also be applied to HTTP streaming,such as MPEG DASH, in which an appropriate piece of encoded data isselected and is used in units of a segment from among a plurality ofpieces of encoded data prepared in advance and having differentresolutions. In other words, information concerning encoding anddecoding can also be shared among a plurality of pieces of encoded data.

It goes without saying that an image encoding device and an imagedecoding device to which the present technology is applied can also beapplied to apparatuses other than the apparatuses described above or tosystems.

Note that an example has been described herein in which a quantizationmatrix (or a coefficient used to form a quantization matrix) istransmitted from the encoding side to the decoding side. A technique fortransmitting a quantization matrix may be to transmit or record thequantization matrix as separate data associated with an encoded bitstream without multiplexing the quantization parameter into the encodedbit stream. The term “associate”, as used herein, means allowing animage (which may be part of an image, such as a slice or block) includedin a bit stream to be linked to information corresponding to the imagewhen the image is decoded. That is, the information may be transmittedon a transmission path different from that for the image (or bitstream). Furthermore, the information may be recorded on a recordingmedium different from that for the image (or bit stream) (or recorded ina different recording area of the same recording medium). Moreover, theinformation and the image (or bit stream) may be associated with eachother in arbitrary units such as a plurality of frames, one frame, or aportion in a frame.

REFERENCE SIGNS LIST

10 image encoding device, 14 orthogonal transform/quantization unit, 16lossless encoding unit, 150 matrix processing unit, 192 DPCM unit, 211DC coefficient encoding unit, 212 AC coefficient DPCM unit, 300 imagedecoding device, 312 lossless decoding unit, 313 dequantization/inverseorthogonal transform unit, 410 matrix generation unit, 552 inverse DPCMunit, 571 initial setting unit, 572 DPCM decoding unit, 573 DCcoefficient extraction unit, 611 AC coefficient buffer, 612 ACcoefficient encoding unit, 613 AC coefficient DPCM unit, 614 DCcoefficient DPCM unit, 621 initial setting unit, 622 AC coefficient DPCMdecoding unit, 623 AC coefficient buffer, 624 DC coefficient DPCMdecoding unit, 631 AC coefficient DPCM unit, 632 DC coefficient buffer,633 DC coefficient DPCM unit, 641 initial setting unit, 642 ACcoefficient DPCM decoding unit, 643 DC coefficient DPCM decoding unit

The invention claimed is:
 1. An image processing device comprising:circuitry configured to decode encoded data including a replacementdifference coefficient that is a difference between a replacementcoefficient used to replace a (0, 0) coefficient of a 32×32 quantizationmatrix which is obtained by up-converting an 8×8 quantization matrixaccording to a nearest neighbor interpolation process and a (0, 0)coefficient of the 8×8 quantization matrixto generate quantized data;set the 32×32 quantization matrix by performing the nearest neighborinterpolation process on the 8×8 quantization matrix in which acoefficient obtained by adding the replacement coefficient to thereplacement difference coefficient is set as the (0, 0) coefficient ofthe 8×8 quantization matrix; replace the (0, 0) coefficient of the 32×32quantization matrix with the replacement coefficient; and dequantize thegenerated quantized data, using the 32×32 quantization matrix in whichthe (0, 0) coefficient of the 32×32 quantization matrix has beenreplaced with the replacement coefficient, and generate transformcoefficient data.
 2. The image processing device according to claim 1,wherein the circuitry is configured to decode the encoded data includingdifference coefficients that are differences between coefficients of the8×8 quantization matrix, and the circuitry is configured to set the 8×8quantization matrix by performing an adding process on the differencecoefficients.
 3. The image processing device according to claim 2,wherein the circuitry is configured to decode the encoded data includingas syntax in which the replacement difference coefficient and thedifference coefficients are collectively included as a differencecoefficient group.
 4. The image processing device according to claim 3,wherein the replacement difference coefficient and the differencecoefficients are in the syntax of the encoded data in order of thereplacement difference coefficient and the difference coefficients, andthe circuitry is configured to decode the replacement differencecoefficient and the difference coefficients in order of the replacementdifference coefficient and the difference coefficients.
 5. The imageprocessing device according to claim 4, wherein the circuitry isconfigured to decode the encoded data including an initial differencevalue between the replacement coefficient and an initial value set for aquantization matrix, and the circuitry is configured to set thereplacement coefficient by adding the initial value to the initialdifference value.
 6. The image processing device according to claim 5,wherein the initial difference value and the difference coefficientgroup are included in the syntax of the encoded data in order of theinitial difference value and the difference coefficient group, and thecircuitry is configured to decode the initial difference value and thedifference coefficient group in order of the initial difference valueand the difference coefficient group.
 7. The image processing deviceaccording to claim 6, wherein the initial difference value and thedifference coefficient group are, by performing an exponential golombencoding process, included in the encoded data, and the circuitry isconfigured to perform an exponential golomb decoding process on theinitial difference value and the difference coefficient group obtainedby performing the exponential golomb encoding in order of the initialdifference value and the difference coefficient group.
 8. The imageprocessing device according to claim 7, wherein the circuitry is furtherconfigured to inversely transform the generated transform coefficientdata.
 9. The image processing device according to claim 5, wherein thecircuitry is configured to inversely transform according to 32×32transform unit.
 10. An image processing method comprising: decodingencoded data including a replacement difference coefficient that is adifference between a replacement coefficient used to replace a (0, 0)coefficient of a 32×32 quantization matrix which is obtained byup-converting an 8×8 quantization matrix according to a nearest neighborinterpolation process and a (0, 0) coefficient of the 8×8 quantizationmatrix to generate quantized data; setting the 32×32 quantization matrixby performing the nearest neighbor interpolation process on the 8×8quantization matrix in which a coefficient obtained by adding thereplacement coefficient to the replacement difference coefficient is setas the (0, 0) coefficient of the 8×8 quantization matrix; replacing the(0, 0) coefficient of the 32×32 quantization matrix with the replacementcoefficient; and dequantizing the generated quantized data using the32×32 quantization matrix in which the (0, 0) coefficient of the 32×32quantization matrix has been replaced with the replacement coefficient,and generate transform coefficient data.
 11. The image processing methodaccording to claim 10, wherein decoding the encoded data includingdifference coefficients that are differences between coefficients of the8×8 quantization matrix, and setting the 8×8 quantization matrix byperforming an adding process on the difference coefficients.
 12. Theimage processing method according to claim 11, wherein decoding theencoded data in a syntax in which the replacement difference coefficientand the difference coefficients are collectively included as adifference coefficient group.
 13. The image processing method accordingto claim 12, wherein the replacement difference coefficient and thedifference coefficients are included in the syntax of the encoded datain order of the replacement difference coefficient and the differencecoefficients, and the decoding includes decoding the replacementdifference coefficient and the difference coefficients in order of thereplacement difference coefficient and the difference coefficients. 14.The image processing method according to claim 13, wherein the decodingincludes decoding the encoded data including an initial difference valuebetween the replacement coefficient and an initial value set for aquantization matrix, and the method further including setting thereplacement coefficient by adding the initial value to the initialdifference value.
 15. The image processing method according to claim 14,wherein the initial difference value and the difference coefficientgroup are included as the syntax of the encoded data in order of theinitial difference value and the difference coefficient group, and thedecoding includes decoding the initial difference value and thedifference coefficient group in order of the initial difference valueand the difference coefficient group.
 16. The image processing methodaccording to claim 15, wherein the initial difference value and thedifference coefficient group are, by performing an exponential golombencoding process, included in the encoded data, and the decodingincludes performing an exponential golomb decoding process on theinitial difference value and the difference coefficient group obtainedby performing the exponential golomb encoding in order of the initialdifference value and the difference coefficient group.
 17. The imageprocessing method according to claim 16, further comprising: inverselytransforming the generated transform coefficient data.
 18. The imageprocessing method according to claim 17, wherein the inverselytransforming includes inversely transforming according to 32×32transform unit.
 19. A computer-readable computer medium storingcomputer-readable instructions, which, when executed by a computer,cause the computer to perform image processing method comprising:decoding encoded data including a replacement difference coefficientthat is a difference between a replacement coefficient used to replace a(0, 0) coefficient of a 32×32 quantization matrix which is obtained byup-converting an 8×8 quantization matrix according to a nearest neighborinterpolation process and a (0, 0) coefficient of the 8×8 quantizationmatrix to generate quantized data; setting the 32×32 quantization matrixby performing the nearest neighbor interpolation process on the 8×8quantization matrix in which a coefficient obtained by adding thereplacement coefficient to the replacement difference coefficient is setas the (0, 0) coefficient of the 8×8 quantization matrix; replacing the(0, 0) coefficient of the 32×32 quantization matrix with the replacementcoefficient; and dequantizing the generated quantized data using the32×32 quantization matrix in which the (0, 0) coefficient of the 32×32quantization matrix has been replaced with the replacement coefficient,and generate transform coefficient data.